Eggzorcist Posted August 18, 2009 Share Posted August 18, 2009 I'm trying to make an application which would need the user to stay logged in for a long period of time. As there are a long fields to fill out and I'm wondering wether $_SESSIONS is what I should be using or should I be using $_COOKIES or something that I'm not aware of... I just don't want a user to type a long piece of data and try to submit it but their sessions timed-out any solutions? Thanks Link to comment https://forums.phpfreaks.com/topic/170764-solved-sessions-timeout/ Share on other sites More sharing options...
ohdang888 Posted August 18, 2009 Share Posted August 18, 2009 a secure application usually uses both cookies and sessions in different ways to keep track of a user Link to comment https://forums.phpfreaks.com/topic/170764-solved-sessions-timeout/#findComment-900601 Share on other sites More sharing options...
Eggzorcist Posted August 18, 2009 Author Share Posted August 18, 2009 I've actually created a GET for that page so it uses the GET session ID instead of the session. Link to comment https://forums.phpfreaks.com/topic/170764-solved-sessions-timeout/#findComment-900610 Share on other sites More sharing options...
ohdang888 Posted August 18, 2009 Share Posted August 18, 2009 I've actually created a GET for that page so it uses the GET session ID instead of the session. if you mean you're passing it in the url, that's very insecure and should NOT be done. Link to comment https://forums.phpfreaks.com/topic/170764-solved-sessions-timeout/#findComment-901318 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.