Quantcast
Channel: What is the best way to prevent session hijacking? - Stack Overflow
Browsing latest articles
Browse All 15 View Live

Answer by Danger Saints for What is the best way to prevent session hijacking?

If ISP hijack the certificate-verification, ISP will possibly initiate a Man-in-the-middle attack. Especially with a compromised certificate authorities.So I believe you can not prevent session hijack...

View Article


Answer by NetDiver for What is the best way to prevent session hijacking?

Use SSL only and instead of encrypting the HTTP_USER_AGENT in the session id and verifying it on every request, just store the HTTP_USER_AGENT string in your session db as well.Now you only have a...

View Article


Answer by Jzf for What is the best way to prevent session hijacking?

AFAIK the session object is not accessible at the client, as it is stored at the web server. However, the session id is stored as a Cookie and it lets the web server track the user's session.To prevent...

View Article

Answer by Hatch for What is the best way to prevent session hijacking?

There are many ways to create protection against session hijack, however all of them are either reducing user satisfaction or are not secure.IP and/or X-FORWARDED-FOR checks. These work, and are pretty...

View Article

Answer by davej for What is the best way to prevent session hijacking?

Let us consider that during the login phase the client and server can agree on a secret salt value. Thereafter the server provides a count value with each update and expects the client to respond with...

View Article


Answer by theironyis for What is the best way to prevent session hijacking?

// Collect this information on every request$aip = $_SERVER['REMOTE_ADDR'];$bip = $_SERVER['HTTP_X_FORWARDED_FOR'];$agent = $_SERVER['HTTP_USER_AGENT'];session_start();// Do this each time the user...

View Article

Answer by Alexandru for What is the best way to prevent session hijacking?

There is no way to prevent session hijaking 100%, but with some approach can we reduce the time for an attacker to hijaking the session.Method to prevent session hijaking:1 - always use session with...

View Article

Answer by Nathan for What is the best way to prevent session hijacking?

Have you considered reading a book on PHP security? Highly recommended.I have had much success with the following method for non SSL certified sites.Dis-allow multiple sessions under the same account,...

View Article


Answer by Nima for What is the best way to prevent session hijacking?

Protect by:$ip=$_SERVER['REMOTE_ADDER'];$_SESSEION['ip']=$ip;

View Article


Answer by Hubert for What is the best way to prevent session hijacking?

Try Secure Cookie protocol described in this paper by Liu, Kovacs, Huang, and Gouda:As stated in document:A secure cookie protocol that runs between a client and a server needs to provide the following...

View Article

Answer by Kibbee for What is the best way to prevent session hijacking?

Ensure you don't use incremting integers for session IDs. Much better to use a GUID, or some other long randomly generated character string.

View Article

Answer by bsmcat for What is the best way to prevent session hijacking?

The SSL only helps with sniffing attacks. If an attacker has access to your machine I will assume they can copy your secure cookie too. At the very least, make sure old cookies lose their value after a...

View Article

Answer by Josh Hinman for What is the best way to prevent session hijacking?

Encrypting the session value will have zero effect. The session cookie is already an arbitrary value, encrypting it will just generate another arbitrary value that can be sniffed.The only real solution...

View Article


Answer by Julio César for What is the best way to prevent session hijacking?

To reduce the risk you can also associate the originating IP with the session. That way an attacker has to be within the same private network to be able to use the session.Checking referer headers can...

View Article

What is the best way to prevent session hijacking?

Specifically this is regarding when using a client session cookie to identify a session on the server.Is the best answer to use SSL/HTTPS encryption for the entire web site, and you have the best...

View Article

Browsing latest articles
Browse All 15 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>