Welcome Guest, Not a member yet? Register   Sign In
Why does the session id keep changing?
#4

[eluser]ray73864[/eluser]
i am creating a shopping cart system and instead of using the session itself for storing the cart, i store it in the database, after realising that every 5mins the cart was disappearing for some reason, i now create a 'fancy_session_id' which is basically just an md5() of time()+time() 'md5(time()+time())' and use that for the cart, then when the user logs in, i assign the cart to their userid.


Messages In This Thread
Why does the session id keep changing? - by El Forum - 10-12-2008, 06:03 AM
Why does the session id keep changing? - by El Forum - 10-12-2008, 06:52 AM
Why does the session id keep changing? - by El Forum - 10-12-2008, 07:16 AM
Why does the session id keep changing? - by El Forum - 10-12-2008, 03:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB