searls03 Posted July 17, 2011 Share Posted July 17, 2011 is there any other way to store login data besides for sessions.......needs to be usable with chat.........I have a chat app set up but when the session ends.....it doesn't know who sent the message...............no I don't have acces to the file to change timeout time. any help with this? Quote Link to comment Share on other sites More sharing options...
teynon Posted July 17, 2011 Share Posted July 17, 2011 Use cookies. http://us3.php.net/manual/en/function.setcookie.php Also, you should save the chat info in a file or database. Quote Link to comment Share on other sites More sharing options...
searls03 Posted July 17, 2011 Author Share Posted July 17, 2011 can logouts delete cookies? and i save it in database. Quote Link to comment Share on other sites More sharing options...
teynon Posted July 17, 2011 Share Posted July 17, 2011 Cookies are still going to expire or get deleted. You can unset cookies yes. Create cookie: setcookie("TestCookie", $value, time()+3600); Destroy Cookie: setcookie ("TestCookie", "", time() - 3600); This is all copied and pasted directly from the php manual. (The link I posted earlier.) Quote Link to comment Share on other sites More sharing options...
searls03 Posted July 17, 2011 Author Share Posted July 17, 2011 sorry, I didn't notice you posted the manual. haha sorry 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.