ataria Posted August 20, 2007 Share Posted August 20, 2007 I want to use cookies, although, I am open to switch over to sessions. What is a good way to ensure their information is safe and no one can gain access to their account? -x- Good / Bad way: Storing PHP session IDs in a cookie, and, a row in the database? and have them match up? X: Quote Link to comment Share on other sites More sharing options...
ataria Posted August 20, 2007 Author Share Posted August 20, 2007 Anyone? :X Quote Link to comment Share on other sites More sharing options...
chocopi Posted August 20, 2007 Share Posted August 20, 2007 I think it would be better to use sessions as there are from what I know easier to do and also, I think cookies can be edited. However, cookies obviously can last after the page has closed. Try google Quote Link to comment Share on other sites More sharing options...
ataria Posted August 20, 2007 Author Share Posted August 20, 2007 Yeah. I want something that would keep them logged in at all times, unless they log out, of course. Quote Link to comment Share on other sites More sharing options...
chocopi Posted August 20, 2007 Share Posted August 20, 2007 well i guess you could use cookies for that, and sessions for everything else, the best of both worlds Quote Link to comment Share on other sites More sharing options...
ataria Posted August 20, 2007 Author Share Posted August 20, 2007 What would I use sessions for, though? :X Quote Link to comment Share on other sites More sharing options...
chocopi Posted August 20, 2007 Share Posted August 20, 2007 just moving data across pages especially classified information. Sessions are great for temporary storage of infomation and they cant be hacked by the user Quote Link to comment 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.