473,406 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

setting Session expiry time in websphere.

sumittyagi
202 Expert 100+
I am using websphere 5.1 and I want to set session timeout for my application.

Now I know two ways of setting it (declaratively and programmatically).
* declaratively in web.xml of the application in session-cofig element.
* programatically by session.setMaxInactiveInterval().

Now I wanted to know two things.
1. If there exists any other way of setting session time out as well.
2. If I do not set my session timeout then what is the default session time out for my application.

Thank you in advance for any help.
Jul 30 '07 #1
2 4529
r035198x
13,262 8TB
I am using websphere 5.1 and I want to set session timeout for my application.

Now I know two ways of setting it (declaratively and programmatically).
* declaratively in web.xml of the application in session-cofig element.
* programatically by session.setMaxInactiveInterval().

Now I wanted to know two things.
1. If there exists any other way of setting session time out as well.
2. If I do not set my session timeout then what is the default session time out for my application.

Thank you in advance for any help.
The default timeout depends on the engine you're using and is the one returned when you call session.getMaxInactiveInterval() before you set your own interval.
Those are the only ways that I know of changing that time.
Jul 30 '07 #2
sumittyagi
202 Expert 100+
The default timeout depends on the engine you're using and is the one returned when you call session.getMaxInactiveInterval() before you set your own interval.
Those are the only ways that I know of changing that time.
Thank you r035198x for your reply.
I thaught there might be any way to set that time from any sever specific file, that represents server settings (server.xml or something like that).

But even if it exists, I think session-config is better way of setting that time, as sessions are specific to web-apps.

But if it exist, then it would be exciting to know ;-)
Jul 30 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: John Smith | last post by:
Hi, I am using a custom Session Handler. session_set_save_handler is working well. But i want to read the data direct from the database. My problem: php don't uses the standard serialize...
8
by: ndsoumah | last post by:
hello guys I'm trying to get access to variables I put in a session variable from another page and it fails... here's the exact situation main file page1.php
0
by: nbdy9(nospam) | last post by:
I have a ASP.Net website (mobile). From time to time the browser popup the following message. Anyway to catch the error and redirect to my start page? saying, login.aspx? Thanks. ...
6
by: somaboy mx | last post by:
Hello I need people to be able to complete long text blocks in my cms before their session times out. From the php documentation I gather that ini directive session.gc_maxlifetime would be the...
6
by: somaskarthic | last post by:
Hi This is somas here. I asked query about detecting the browser close event using javascript. I want to detect the event only when the X button in the top right corner is clicked and not else...
6
by: laredotornado | last post by:
Hi, When a user logs into our site, we create a session variable to denote the session is active and another to denote who is logged in. Once the user closes the browser and re-opens it, the...
2
by: Muhammed Soyer | last post by:
Hi, I wonder whether any good mailing lists for C# and dotnet technologies exist or not. Do you follow any mailing lists for dotnet ? Thanks
2
by: sophie_newbie | last post by:
Hi, I'm wondering how do you set a 'timeout' or expiry date/time for a cookie set using a python cgi script. I can set a cookie ok but I dunno how to set the expiry time so it always expires at...
2
by: fijsolam1981 | last post by:
Hi, I had created a web application where Session expiry was set to 2,000 minutes in IIS. in web config i had given like this <sessionState timeout="2,000" mode="InProc"></sessionStatebut MY web...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.