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? Link to comment https://forums.phpfreaks.com/topic/242229-something-other-than-sessions/ 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. Link to comment https://forums.phpfreaks.com/topic/242229-something-other-than-sessions/#findComment-1243923 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. Link to comment https://forums.phpfreaks.com/topic/242229-something-other-than-sessions/#findComment-1243924 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.) Link to comment https://forums.phpfreaks.com/topic/242229-something-other-than-sessions/#findComment-1243925 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 Link to comment https://forums.phpfreaks.com/topic/242229-something-other-than-sessions/#findComment-1243926 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.