FishSword Posted June 25, 2011 Share Posted June 25, 2011 Hiya! , I'm currently working on a user login script at the moment, but I'm not sure what should happen when the user logs-in? How would the system keep a record of whether the user has already authenticated? Many Thanks, FishSword Quote Link to comment https://forums.phpfreaks.com/topic/240372-user-login-script/ Share on other sites More sharing options...
freelance84 Posted June 25, 2011 Share Posted June 25, 2011 Set a $_SESSION Quote Link to comment https://forums.phpfreaks.com/topic/240372-user-login-script/#findComment-1234684 Share on other sites More sharing options...
FishSword Posted June 25, 2011 Author Share Posted June 25, 2011 What should the session contain, and what should the session match with to allow the user to be logged. I have research on the internet that session id's can be easily changed if the site is being hosted on shared hosting. is there any way to prevent this. I have also found out that sessions can be hijacked. How do I prevent this? Quote Link to comment https://forums.phpfreaks.com/topic/240372-user-login-script/#findComment-1234698 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.