• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
On the server, where is session information stored?

#1
[eluser]bobdobbs[/eluser]
Hi.

I'm learning about sessions and ci's session class.

I understand that session information is stored on the server for every session.
On my testing server, when I have set up sessions, where in the file system do I go in order to inspect the server-side parts of sessions?

Thanks.

#2
[eluser]skunkbad[/eluser]
[quote author="bobdobbs" date="1310362565"]Hi.

I'm learning about sessions and ci's session class.

I understand that session information is stored on the server for every session.
On my testing server, when I have set up sessions, where in the file system do I go in order to inspect the server-side parts of sessions?

Thanks.[/quote]

Actually, because CI doesn't use real php sessions, the "session" data is really stored in a cookie, which lives in the browser. No data is stored on the server unless the database functionality is implemented.

#3
[eluser]Anonymous[/eluser]
The session data isn't stored in a flat file. In case you want to see the contents of the session:

Code:
var_dump($_SESSION[]);

#4
[eluser]WanWizard[/eluser]
That doesn't work, because as skunkbad already wrote, CI, doesn't use PHP's sessions.

#5
[eluser]Anonymous[/eluser]
Ahhh forgot about that, u'r right


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.