How to completely disable session

digiaditya
Member | 3
+
0
-

hello i want to completely disable session so that it does not create the PHPSESSID= cookie ?

Anybody knows how to?

Thanks…

David Matějka
Moderator | 6445
+
0
-

Hi, may I know why?

You would have to stop using all features which uses sessions – that includes flash messages, store/restore request, forms csrf protection and user storage.

David Grudl
Nette Core | 8133
+
0
-
digiaditya
Member | 3
+
0
-

David Matějka wrote:

Hi, may I know why?

You would have to stop using all features which uses sessions – that includes flash messages, store/restore request, forms csrf protection and user storage.

im actually developing an api with an admin panel which only i will use… i dont want it to load unnecessary modules on the api part…

digiaditya
Member | 3
+
+1
-

David Grudl wrote:

Via autostart: no https://doc.nette.org/en/configuring#…

Thanks bro…

Im really liking Nette.. thanks for creating it…

Jelen
Member | 18
+
0
-

What is the best way to disable a session on a specific route? For example when generating images at the API endpoint. We use PHP generation as a fallback when AWS Lambda is not configured and the session really slows down the execution due to locks.