• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

is it possible to manually give one session?

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have two pages one is for user and another for admin.
when you login from the user then i am setting the session inactive interval as
session.setMaxInactiveInterval(600);
and for admin, the session inactive period is 60 and i am setting this as session.setMaxInactiveInterval(60);
Suppose when i login from the browser user and from the same browser i login admin then for the pages the session inactive period is set as 60 seconds.
So i wanted any help to get rid of this problem
 
Ranch Hand
Posts: 384
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can only have one active session per web application per web browser.
So as in your case when you re-login as admin the same session's inactive interval is reset.
 
suki sahu
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Lalit Mehra wrote:You can only have one active session per web application per web browser.
So as in your case when you re-login as admin the same session's inactive interval is reset.


Any solutions to get rid off this idea?
Cant i give two session inactive times?
If not then how to login as a user and as a admin from the same browser and at the same time?
 
Lalit Mehra
Ranch Hand
Posts: 384
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

suki sahu wrote:
Any solutions to get rid off this idea?
Cant i give two session inactive times?
If not then how to login as a user and as a admin from the same browser and at the same time?



I think you didn't read the reply properly.
 
Story like this gets better after being told a few times. Or maybe it's just a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic