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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

kill session files

Status
Not open for further replies.

GIGN

Programmer
Oct 6, 2000
1,082
NZ
O.K. - so session files are deleted when the session times out right?

Why is this not working - I have set

ini_set("session.cache_expire",0);

But the files are still there. PHP a joke or what, all this is really pathetic - rock on ASP...

[bb]
 
just use :

session.abandon Regards

Big Dave

davidbyng@hotmail.com


** If I am wrong I am sorry, but i'm only trying to help!! **

 
I can't - [I assume you mean session_destroy]I am trying to use session_set_save_handler - so the user does not have to actively log-out, and I can clean up after them.

Everything works if I call session_destroy() - the session file is deleted, but I can't get this to work otherwise.
I am attempted to replicate ASP's on_Session_End - and it is not going well with this PHP crap.

[bb]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top