PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
hi im having a problem of being logged out of my site randomly mostly when i shutdown i have this on every page and also every ajax called page should i not have it on the ajax called page ?
you need to set cookies and give time for it as 31 days
setcookie($username, $username, (time()+3600)*24*31);
setcookie($username."pass", $password, (time()+3600)*24*31);
and on you application top part if you find this cookies already set
you can register the session else ask for login.