MemphiS Posted June 6, 2007 Share Posted June 6, 2007 Ive written some code up using session to hold the values. 3 users are given random values. Problem with this is if the user logs out or leaves my site the sessions are destroyed... and so the values are lost. Is there another way of holding values and keeping them alive untill they are no longer needed. I was thinking sql table but thought i would ask this forum first for any other ways Thanks for your input Quote Link to comment https://forums.phpfreaks.com/topic/54389-alternatives-to-sessions/ Share on other sites More sharing options...
thefortrees Posted June 6, 2007 Share Posted June 6, 2007 You can use cookies. With cookies you can set the expire time. http://us.php.net/manual/en/features.cookies.php Quote Link to comment https://forums.phpfreaks.com/topic/54389-alternatives-to-sessions/#findComment-268945 Share on other sites More sharing options...
MemphiS Posted June 6, 2007 Author Share Posted June 6, 2007 Uhm.. Cookies can be deleted, edited and wouldnt work for the use i have in mind for values. Quote Link to comment https://forums.phpfreaks.com/topic/54389-alternatives-to-sessions/#findComment-268946 Share on other sites More sharing options...
pocobueno1388 Posted June 6, 2007 Share Posted June 6, 2007 I think a database is going to be your only choice in this situation. Quote Link to comment https://forums.phpfreaks.com/topic/54389-alternatives-to-sessions/#findComment-268955 Share on other sites More sharing options...
btherl Posted June 6, 2007 Share Posted June 6, 2007 Uhm.. Cookies can be deleted, edited and wouldnt work for the use i have in mind for values. What is the use you have in mind? Then we can offer an appropriate solution. Quote Link to comment https://forums.phpfreaks.com/topic/54389-alternatives-to-sessions/#findComment-268959 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.