Jump to content
MakeWebGames

session hacking prevention and multiple ?


rockwood

Recommended Posts

Track it in a database, if there is a record in there when the session hasn't expired don't let the other user login, or logout the other user.

Link to comment
Share on other sites

Basically what you are saying right now "I didn't understand ****, could you please provide me with complete code so I can rip it off and use it".

Why not just go further with the information you was given? He told me to track sessions in a database, a good start would be to google on how to do that. Here's a relevant question on how to do that: http://stackoverflow.com/questions/2950355/set-session-in-database-in-php

Here's another relevant answer on your first question: The most common Session attacks are either Session hijacking or Session fixation. Here's another great question about it: http://stackoverflow.com/questions/5081025/php-session-fixation-hijacking

Link to comment
Share on other sites

Basically what you are saying right now "I didn't understand ****, could you please provide me with complete code so I can rip it off and use it".

Why not just go further with the information you was given? He told me to track sessions in a database, a good start would be to google on how to do that. Here's a relevant question on how to do that: http://stackoverflow.com/questions/2950355/set-session-in-database-in-php

Here's another relevant answer on your first question: The most common Session attacks are either Session hijacking or Session fixation. Here's another great question about it: http://stackoverflow.com/questions/5081025/php-session-fixation-hijacking

i have two different queries in case one i am regenerating session id and in second case i am trying to prevent single user multiple login at the same time and on different locations

Link to comment
Share on other sites

Did you even start with a simple Google search prior to asking here?

I believe we as a community ( okay pretty much Octarine ) already <debated> ways of prevention ( multiple instances ) within the context of MCCodes, it may even still be on here, or linked to an external resource from here.

I think it was posted by Octarine, under "Login" or similar, use the search feature. :rolleyes:

http://makewebgames.io/showthread.php/40994-Can-you-spot-the-bugs-Chapter-5-CSRF-XSS-Session-Fixation-Hijacking

Sorry I was wrong (just removed), maybe if you ask really really nicely, Octarine may or may not post the relevant post again.

Edited by Djkanna
Link to comment
Share on other sites

  • 5 months later...
how can i make session secure on my website ?

how to stop multiple login by single user on my web ?

What is the problem of being logged on twice ?

It's the same user, so it would not make a difference.

And if it does than your code has side effects.

It's better to remove the bad code with side effects, than to try to cover up your mistakes after it.

My users can logon as mutch they like, there loged-on or loged-off. They don't get extra point for loging on twice.

Happy Hacking: Roger

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...