Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 10-09-2009
Member
 
Join Date: Apr 2009
Posts: 67
Where does PHP session stored?

I always have one question in my mind when I thought about the session, I cannot make sure whether PHP session stored on client side or server side and how do I come to know where session lies inbetween the work.
Reply With Quote
  #2  
Old 10-09-2009
Member
 
Join Date: Oct 2008
Posts: 167
Re: Where does PHP session stored?

Session is stored on Server side where as Cookies is stored on client side the cookies are not allowed because of which it automatically reduces sever load again there is one reason which is, PHP Session is used to maintain client's previous state and it's stored on server side. where as if no other user are limited then session is used where load doesn't matter.
Reply With Quote
  #3  
Old 10-09-2009
Member
 
Join Date: Mar 2008
Posts: 192
Re: Where does PHP session stored?

Client side session is a cookie, either a session cookie (which is only around during the time the instance of the browser that activated the cookie is around) or normal cookie which is info stored on clients computer with can be set to timeout beyond the instance of the browser. Even native PHP session handling uses a cookie if not a query string param. You have to have the session id hash somewhere on the client side. Server Side session is an area the PHP server sets up for each individual connection, and to use them you need to use session_start(); at the top of the php file you want to be able to set and read Session information.
Reply With Quote
  #4  
Old 10-09-2009
Member
 
Join Date: Oct 2008
Posts: 161
Re: Where does PHP session stored?

It depends whether the session handler is actually set to use cookies. check in the IE cookie store. PHP Session is used to maintain client's previous state and it's stored on server side. Session data is the only kind of data that is safely rests on Server Side and can not be manipulated from the client side. Open internet explorer then on the tools menu go to Internet Options then in the general tab, temporary files section click 'Settings' then 'view files' the physical location is hidden and has a random character string in the pathname.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Where does PHP session stored?"
Thread Thread Starter Forum Replies Last Post
Difference between root session and standard user session in gimp Gajagamini Operating Systems 4 17-01-2011 11:14 AM
Windows 7 console session becomes unresponsive after Remote desktop session Krishanu Networking & Security 4 24-12-2010 07:58 AM
Using stored procedures and stored functions in MySQL Adiran Software Development 6 14-12-2010 01:54 AM
FTP problem - unable to make the session state request to the session state server. Benito Software Development 3 31-07-2009 01:09 PM
where the UT3 cd key is stored? Carl Lewis Windows Software 3 24-06-2009 10:57 AM


All times are GMT +5.5. The time now is 06:11 AM.