Jump to content
MakeWebGames

Remember Me (login cookies)


DeathsAlive

Recommended Posts

ive not worked with NWE but i should imagine it works like this

1) User logs in (with save option selected)

2) Server sets cookie with a random session key

3) Server inserts a row into a sessions table holding the same random session key and a user id

4) On each page load the server will check for the cookie, if its there it will search the DB for the same session key if its there the software will load the data for the user ID.

5) if its not there it will prompt the user to login.

6) it may have a feature if your session key is incorrect XX times it may lock you out the system (so you cant just keep changing the cookie)

  • Like 1
Link to comment
Share on other sites

Well. When I get in from work, I'll take a look at it :)

Think it may be a case of creating a session table, which holds a encrypted cookie data. And on page load, checking that data?

Thinking about it, could be easily done with a hook maybe. Ether way, I'll have a play with it when I get home! ^_^

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...