This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

is it possible to manually give one session?

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic