473,395 Members | 1,937 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,395 software developers and data experts.

Sessions -Setting a timeout in order to re-logon

Hi,

i've been playing around with the session time out setting in the webconfig.
Now i set it at 1 minute and waited in the global.asx in the session end
event but it does not fire.

What i'm trying to achieve is the following.

Forms authentification login : - Done
If the user leaves the application open and unused for more than 10 minutes.
I want kill the authentification and move them back to the log on screen.
(now i have achieved the killing of the authentification and returning to
the log on via a log off button) Now i want to activate the same code if
their session times out.

Has anyone done something similar or know of code to do this?

Ric
Nov 17 '05 #1
2 2400
PJ
The SessionEnd event will only fire if you are using InProc session mode.

"Ric Pullen" <Ri***********************@Hospital.nhs.uk> wrote in message
news:uU*************@TK2MSFTNGP11.phx.gbl...
Hi,

i've been playing around with the session time out setting in the webconfig. Now i set it at 1 minute and waited in the global.asx in the session end
event but it does not fire.

What i'm trying to achieve is the following.

Forms authentification login : - Done
If the user leaves the application open and unused for more than 10 minutes. I want kill the authentification and move them back to the log on screen.
(now i have achieved the killing of the authentification and returning to
the log on via a log off button) Now i want to activate the same code if
their session times out.

Has anyone done something similar or know of code to do this?

Ric

Nov 17 '05 #2
Cheers, this is what i'm doing though, i've taken a copy of some of the
info in the web.config

<authentication mode="Forms">
<forms name=".logoncookie" loginUrl="secure/Login.aspx" protection="All"
timeout="80" path="/"/>
</authentication>

<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;user id=sa;password="
cookieless="false" timeout="1"/>

"PJ" <pj*********@hotmail.com> wrote in message
news:uo**************@TK2MSFTNGP11.phx.gbl...
The SessionEnd event will only fire if you are using InProc session mode.

"Ric Pullen" <Ri***********************@Hospital.nhs.uk> wrote in message
news:uU*************@TK2MSFTNGP11.phx.gbl...
Hi,

i've been playing around with the session time out setting in the

webconfig.
Now i set it at 1 minute and waited in the global.asx in the session end
event but it does not fire.

What i'm trying to achieve is the following.

Forms authentification login : - Done
If the user leaves the application open and unused for more than 10

minutes.
I want kill the authentification and move them back to the log on screen. (now i have achieved the killing of the authentification and returning to the log on via a log off button) Now i want to activate the same code if
their session times out.

Has anyone done something similar or know of code to do this?

Ric


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: The Plankmeister | last post by:
Hi... I'm trying my hardest to understand fully how sessions work and how best to use them. However, all I can find is information that doesn't tell me anything other than that sessions store...
1
by: Ben | last post by:
Hi, I am running a simple application dedicated to verify the sessions variables, but it is not working. both transid and trackvars are enabled. testpage1: <?php session_start();...
10
by: Marcus | last post by:
Hi All, First, just wanted to say that I found what I thought was a very helpful tutorial on sessions in case anyone out there has questions on them: ...
3
by: Gary W | last post by:
Hello, I have used SESSIONS on mission critical pages on my site, and if sessions are not enabled / supoorted - these pages will fail. When and why would a session fail? They do not store any...
0
by: melledge | last post by:
The Reliable Source for Everything XML - XML 2005 Update XML 2005 - November 14-18 - Atlanta Hilton Hotel - Atlanta, GA www.xmlconference.org Register today and participate in IDEAlliance's...
1
by: jty202 | last post by:
1. Can I have an array of objects as sessions variable in other words sessions array-of-objects? If so how? 2. Besides Sessions variable what else can I use to store large amount of data...
5
by: Rob | last post by:
I have an ASP.NET application that uses forms-based authentication. A user wishes to be able to run multiple sessions of this application simultaneously from the user's client machine. The...
2
by: tbone | last post by:
In trying to improve the throughput of a classic ASP app I wrote last year, I added monitoring to the application and session start and end methods. For one, I'm counting the total number of...
4
by: news | last post by:
We have a huge PHP e-commerce site that relies totally on PHP sessions and cookies. We need to create a demo version of the site for potential clients to use that does NOT show the original URL in...
2
by: JoeSep | last post by:
Hello, I know that when the SessionState is set to SQL Server (ASP.NET 1.1) these counters in PerfMon are not valued: - Sessions Abandoned - Sessions Active - Sessions Timed Out - Sessions...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.