Hi,
we have set our session timeout in web.config and in IIS to 1 minute,
but the session never expires. We check a variable Session("UserId ")
in global.asax, which is still valid after 10 minutes.
here is our code in global.asax:
Private Sub Global_AcquireR equestState(ByV al sender As Object, ByVal e
As System.EventArg s) Handles MyBase.AcquireR equestState
If Not LCase(Request.P ath).EndsWith(" default.aspx") And _
Not LCase(Request.P ath).EndsWith(" frontdoor.aspx" ) Then
If Session("UserId ") Is Nothing Then
Response.Redire ct("frontdoor.a spx", True)
End If
End If
End Sub
and this is our session state part in web.config:
<sessionState
mode="SQLServer "
stateConnection String="tcpip=1 27.0.0.1:42424"
sqlConnectionSt ring="data
source=PIII550; Trusted_Connect ion=no;uid=sa;p wd=xxxxx"
cookieless="tru e"
timeout="1"
/>
We know that form authentication would be a better approach for this
purpose, but forms authentication does not work if a browser blocks
cookies.
Does anyone have an idea?
Many thanks in advance.
Daniel Geisenhoff 4 8006
Can you check the value of Session.IsNewSe ssion?
Eliyahu
"Daniel Geisenhoff" <dg*********@mi croteq.ch> wrote in message
news:27******** *************** ***@posting.goo gle.com... Hi,
we have set our session timeout in web.config and in IIS to 1 minute, but the session never expires. We check a variable Session("UserId ") in global.asax, which is still valid after 10 minutes.
here is our code in global.asax:
Private Sub Global_AcquireR equestState(ByV al sender As Object, ByVal e As System.EventArg s) Handles MyBase.AcquireR equestState If Not LCase(Request.P ath).EndsWith(" default.aspx") And _ Not LCase(Request.P ath).EndsWith(" frontdoor.aspx" ) Then If Session("UserId ") Is Nothing Then Response.Redire ct("frontdoor.a spx", True) End If End If End Sub
and this is our session state part in web.config:
<sessionState mode="SQLServer " stateConnection String="tcpip=1 27.0.0.1:42424" sqlConnectionSt ring="data source=PIII550; Trusted_Connect ion=no;uid=sa;p wd=xxxxx" cookieless="tru e" timeout="1" />
We know that form authentication would be a better approach for this purpose, but forms authentication does not work if a browser blocks cookies.
Does anyone have an idea?
Many thanks in advance. Daniel Geisenhoff
After 5 minutes, the session.isnewse ssion is still false.
Thanks.
Daniel
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Daniel,
Note that the session timeout refers to the inactivity time. If you are
serving requests all the time, the session will never expire. Are you sure
no requests arrive within your timeout period?
Eliyahu
"microteq" <mi******@devde x.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
After 5 minutes, the session.isnewse ssion is still false.
Thanks. Daniel
*** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
As I am the only user, I am quite sure of that.
Or can I serve requests without explicitely posting my page?
Thanks.
Daniel.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: PM |
last post by:
I'm trying to make a kind of search history containing the 3 last
searched words. So I'm using 3 Session Variables: Word1 / Word2 /
Word3.
In order to get this history working, I need to put the last searched
word in the following Variable.
Ex.:
Session("Word3") = Session("Word2")
Session("Word2") = Session("Word1")
|
by: chrism |
last post by:
Hello,
I have a pop-up window that I would like to appear in front of the
browser home page when a user opens IE. Problem is, I'd like it to
never appear again if the user navigates back to the home page during
their time using the browser. However, if the user closes the
browser, then reopens, the pop-up should appear again. (you may have
guessed that this will be used for public access pc's.) I want to try
as best I can to catch...
|
by: Jenn |
last post by:
I have done alot of web work in all sorts of languages but I have never used
the simple cookie. Question is
How does one set and retrieve a simple session cookie. All it will do is
have an image change on 1 page only with every new visitor, there are 5
images it should be random and stay the same unless the session is ended.
Sounds pretty simple but I cannot find simple examples of a cookie doing
anything similar to this. I found oodles...
|
by: Jennifer |
last post by:
Is there a way to check for to see if the user has session cookies
enabled?
I know how to check to see if they have cookies in general enabled,
but how do you test for just session cookies?
Thanks
Jen
|
by: Enoch Chan |
last post by:
I would like to set a Session variable to a value. In Vbscript it should be
Session("ZoomValue")=500
How can I set this session variable by using Javascript?
Thanks
| |
by: ACaunter |
last post by:
Hi all,
I was wondering how i could write some code which would automatically open
the Login Page once the session has expired?
--
AdamPC@hotmail.com
|
by: Martin Walke |
last post by:
Hi all,
Is there any limit to the number of session variables a site can have? And
is that affected by global.asa at all?
The reason why i ask is that i have a relatively simple site that relies on
about 40 sesion variables and a mixture of vbs and js files. One of the
session variables is an id number that gets incremented to point to the next
piece of data to be displayed. This variable is initialised on the first
page of the site...
|
by: mike.biang |
last post by:
I have an ASP page that is using an XMLHTTP object to request various
pages from my server. I keep a single session throughout the XMLHTTP
requests by bassing the ASPSESSIONID cookie through the XMLHTTP object.
However, when the page requested through the XML object makes a
<%Response.Redirect()%>
call, a new session is created each time.
Is this a flaw in the XMLHTTP Object? How can I force the session to
remain the same after a...
|
by: rgparkins |
last post by:
Hello
I am running out of time with a problem I have running PHP 5.04 and
Apache 2.0 and really need help :(. I have a page that stores a
variable in session but each time I reload that page the session seems
to be re-created and is an empty array. I have checked the session file
and the variable is being stored against the session id, but I dont
know why PHP is not picking up the session after I reload.. I have
tried the usual suspects...
|
by: Aarchaic |
last post by:
Hello i have problem my session variables seem to disapear as i go along i've created this code to ilustrate whats happening
First off i just post 3 detials like a name a age and a favourite number.
that in turn goes to the next page where its being picked up by the php code and put into the Global Variable.
the page uses the variables with no problem and you can select a link to go onto the next page where the number is being...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |