• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

About Session Management

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please tell me how i compare randomly generated key inside session?
 
Ranch Hand
Posts: 781
Netbeans IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netbeans IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I've read about this kind of thing at the checkout counter. That's where I met this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic