where Php session variable stored?? if it stored in server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
selvamdoom
Forum Newbie
Posts: 7
Joined: Wed Apr 29, 2009 12:53 pm

where Php session variable stored?? if it stored in server

Post by selvamdoom »

why the following action happen????

for example i can login gmail and i go to browser's tools->clear private data then i clear all cookie and then i refresh the gmail page but now it go to sign out automatically.

why the event happen? session is stored in server side but i just clear the cookie in client side then why it signed out??

please answer me.............
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: where Php session variable stored?? if it stored in server

Post by requinix »

Because the cookie tells the server which session it should use.
selvamdoom
Forum Newbie
Posts: 7
Joined: Wed Apr 29, 2009 12:53 pm

Re: where Php session variable stored?? if it stored in server

Post by selvamdoom »

thanks. but i can't understand will you explain it please.....
User avatar
mikemike
Forum Contributor
Posts: 355
Joined: Sun May 24, 2009 5:37 pm
Location: Chester, UK

Re: where Php session variable stored?? if it stored in server

Post by mikemike »

Have a read of this article:
http://www.dustinsdesign.com/php-sessions-vs-cookies/

That should answer most of your questions
selvamdoom
Forum Newbie
Posts: 7
Joined: Wed Apr 29, 2009 12:53 pm

Re: where Php session variable stored?? if it stored in server

Post by selvamdoom »

Thank you very Much ya...
Post Reply