User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 427,028 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,488 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 1714 | Replies: 1
Reply
Join Date: Oct 2006
Posts: 1
Reputation: shivani15j is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
shivani15j shivani15j is offline Offline
Newbie Poster

Question Session problem in asp

  #1  
Oct 11th, 2006
i m using session in my website(ASP) but after logging in if i don't acccess the page for 5 minutes session expires n if i continously access some pages then after 15 minutes session expires.i have used global.asa file then same problem occurs and if i dont use global.asa then also problem remains same

I am assisgning values to session while authorized person loggs in.


i have made a seperate page for checking if session value is empty or unauthorized user try to access the page redirect user to unauthorized page.

can it be possible that the person remains logged in until n unless
he/she logs out manually.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Location: India
Posts: 234
Reputation: cancer10 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
cancer10's Avatar
cancer10 cancer10 is offline Offline
Posting Whiz in Training

Solution Re: Session problem in asp

  #2  
Oct 12th, 2006
Try to use the session.timeout method


<%
session("username") = "abc"
Session.Timeout = 50
%>


By default your session is valid for 20 mins if u r not active. But in the above code, your session will expire after 50 minutes even if u r not active
Last edited by cancer10 : Oct 12th, 2006 at 3:09 am.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP Forum

All times are GMT -4. The time now is 2:56 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC