Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About Session Management

 
Murtaza Lokhandwala
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please tell me how i compare randomly generated key inside session?
 
James Sabre
Ranch Hand
Posts: 781
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Murtaza Lokhandwala wrote:Please tell me how i compare randomly generated key inside session?

I don't understand. Can you elaborate on your requirement?
 
Murtaza Lokhandwala
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to generate a random key after login and put that key inside login session and pass that key from url to url for same browser when i pass that key with my complete url on different browser then the resultant page shows a message to relogin.I want that requirement for security reason.
Please Help me!
 
James Sabre
Ranch Hand
Posts: 781
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Murtaza Lokhandwala wrote:i want to generate a random key after login and put that key inside login session and pass that key from url to url for same browser when i pass that key with my complete url on different browser then the resultant page shows a message to relogin.I want that requirement for security reason.
Please Help me!


I still don't really understand. You seem to want to duplicate the functionality you are already using for maintaining your session; in it's most simple form it is a random session ID handled as a Cookie. I can't see how just passing around another random value adds to the limited security you already have through the session Cookie.
 
Murtaza Lokhandwala
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
James Sabre wrote:
Murtaza Lokhandwala wrote:i want to generate a random key after login and put that key inside login session and pass that key from url to url for same browser when i pass that key with my complete url on different browser then the resultant page shows a message to relogin.I want that requirement for security reason.
Please Help me!


I still don't really understand. You seem to want to duplicate the functionality you are already using for maintaining your session; in it's most simple form it is a random session ID handled as a Cookie. I can't see how just passing around another random value adds to the limited security you already have through the session Cookie.


Can you tell me about session generation for different browsers!
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that you need to read about how a session is maintained. Because the functionality that you're describing is already implemented.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic