Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie question - sessions ?

Status
Not open for further replies.

way2many

Technical User
Nov 28, 2003
139
US
HI,
just started with PHP coming from ASP/.NET

Just uploaded 2 weeks ago my first php website to win hosting (I use this company for asp also)
In FTP client I see now ~ 20 files like this in the root directory:
sess_af02e20188293b345781ec5f9b0d1861

Do I need to do any thing with them?
Are these just temp sessions which will be gone after x minutes?

On my asp accounts I have not seen such files via FTP.

Thanks
 
Yes, those are your session stores. I recommend you leave them alone, as PHP will eventually take care of them. As to when PHP will get rid of them, see faq434-4908.

ASP, or more exactly, VBScript/ASP, stores session data in the web server's memory. Storing user session data in memory does give the advantage of speed, but eats up a lot of memory.

Storing session data on the filesystem, as PHP does, will be slower, but reduces system resource usage. Plus, session data can survive a server restart.


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top