473,856 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Session expired....

Will the below statement returns TRUE or FALSE iif the session is expired?

(Request.UrlRef errer) Is Nothing

I am using ASP.Net 1.1 and IIS 5.0.

Thanks,

Smith



Nov 19 '05 #1
4 1563
Jon
That property is independent of the session as far as I know.
"Peter Smith" <Pe*********@ho tmail.com> wrote in message
news:Om******** ******@TK2MSFTN GP15.phx.gbl...
Will the below statement returns TRUE or FALSE iif the session is expired?

(Request.UrlRef errer) Is Nothing

I am using ASP.Net 1.1 and IIS 5.0.

Thanks,

Smith


Nov 19 '05 #2
Thanks, Any other comments from any one else.
-Smith

"Jon" <ru******@msn.c om> wrote in message
news:%2******** *******@TK2MSFT NGP14.phx.gbl.. .
That property is independent of the session as far as I know.
"Peter Smith" <Pe*********@ho tmail.com> wrote in message
news:Om******** ******@TK2MSFTN GP15.phx.gbl...
Will the below statement returns TRUE or FALSE iif the session is expired?
(Request.UrlRef errer) Is Nothing

I am using ASP.Net 1.1 and IIS 5.0.

Thanks,

Smith



Nov 19 '05 #3

They are independant. The only thing that fiddles with the referrer is the
use who may choose to hide it for privacy reasons.

BTW In the HTTP Standard (at a code-level) referrer is misspelt: 'referer'.

Cheers,
Tom Pester
Thanks, Any other comments from any one else.
-Smith
"Jon" <ru******@msn.c om> wrote in message
news:%2******** *******@TK2MSFT NGP14.phx.gbl.. .
That property is independent of the session as far as I know.

"Peter Smith" <Pe*********@ho tmail.com> wrote in message
news:Om******** ******@TK2MSFTN GP15.phx.gbl...
Will the below statement returns TRUE or FALSE iif the session is
expired?
(Request.UrlRef errer) Is Nothing

I am using ASP.Net 1.1 and IIS 5.0.

Thanks,

Smith

Nov 19 '05 #4
Try this if you want to see if the session has expired. I forgot where I
found this but I thank them just the same!

private void CheckForSession Timeout(){
if (Context.Sessio n != null){
if (Session.IsNewS ession){
string szCookieHeader = Request.Headers["Cookie"];
if ((null != szCookieHeader) &&
(szCookieHeader .IndexOf("ASP.N ET_SessionId") >= 0)){
Response.Redire ct(this.Resolve Url("~/sessionTimeout. aspx"));
}
}
}
}

--
Ian
"tom pester" wrote:

They are independant. The only thing that fiddles with the referrer is the
use who may choose to hide it for privacy reasons.

BTW In the HTTP Standard (at a code-level) referrer is misspelt: 'referer'.

Cheers,
Tom Pester
Thanks, Any other comments from any one else.
-Smith
"Jon" <ru******@msn.c om> wrote in message
news:%2******** *******@TK2MSFT NGP14.phx.gbl.. .
That property is independent of the session as far as I know.

"Peter Smith" <Pe*********@ho tmail.com> wrote in message
news:Om******** ******@TK2MSFTN GP15.phx.gbl...

Will the below statement returns TRUE or FALSE iif the session is

expired?
(Request.UrlRef errer) Is Nothing

I am using ASP.Net 1.1 and IIS 5.0.

Thanks,

Smith


Nov 19 '05 #5

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

Similar topics

4
5043
by: David B | last post by:
Hi, Could somebody please tell me how I check whether a session is dead based soley on the Session.SessionID. At present the timeout is set to 20 minutes in IIS, I am aware that I can reset this on the page. However after 22 minutes, or some interval longer than the session timeout, the Session.SessionID values is still availible. What I want to achieve is this. There is a small section of my site that must have an active session....
6
2550
by: Keith | last post by:
Is there any way of detecting whether a session variable does not exist because it expired or because it simply did not exist in the first place? Thanks
3
7387
by: Simon | last post by:
Hi all, Any help with this would be much appreciated: I have a site where the session needs to timeout because of security concerns. I want to send the user back to the login page if the session is expired. Whats happening at the moment is that objects that exisit in the Session are being accessed when the session has expired.
4
4916
by: Nick | last post by:
Hi I am a little stuck. I have a web app which uses cookieless session management. I would like to inform a user when their session has ended but cannot work out how to implement. I thought of placing a redirect into the Session_End method in the global file but this does not work. To my understanding a session will end when it has been idle for the time specified in the web.config file. The user may still have the
6
3356
by: NH | last post by:
How can I warn a user that their session has expired when they click on a button etc?
17
4989
by: Riaan | last post by:
Hi guys! I have an issue that needs urgent resolution. Imagine this scenario: You have: 1 production server running Windows Server 2003, IIS6 and an instance of MSDE 2000. There is an asp.net app (written in C#) running which has the only purpose of rendering a page with a "Next" button on it and some status info. When the user clicks the next button, an event is written to the
2
2754
by: rsouza | last post by:
Hi. Recently here in my work we added the following code in the Global.asax file to handled the session expired and redirect users to the home of the site explaining them the occurred (some thing like "Your session has expired, please restart your navigation."). public void Session_Start(Object sender, EventArgs e) { if(Session.IsNewSession && Request.Headers != null &&
2
2650
by: Gordon Burditt | last post by:
I had this idea about preventing session fixation, and I'm wondering what anyone else thinks about it. The idea is, essentially, don't allow session ids that YOUR PHP didn't generate (and aren't yet expired) to log in. That way if someone sticks a made-up session ID on a URL, it won't matter, unless it happens to correspond to an active session (guessing a user password is probably easier). Is this already standard practice, new, or is...
1
2436
by: magix8 | last post by:
Hi, I have a portal with logon session coded in ASP. From the Portal Main screen, i access to a popup-window screen to do my activity. Whenever session expired, the popup-window screen will redirect to logon page, but this is not what I intended Normally when session expired, and if you click any in the portal main screen, it will redirect to logon page, and this is fine. For popup windows screen, what I want is that:
4
2446
by: sriram | last post by:
Hello Friends, I am new to this group so big HIIIIIIII to all :) fine i have a serious doubt about session handling in PHP. After 20 min (default time) session getting expired, session values are stored in a folder as a file, fine how php finiding that particular session expired? Because the files in session folder will not be deleted after 20 min but one session expired... Please explain me how this is happening? How php finds that...
0
9916
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, 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...
0
9762
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11057
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10696
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9531
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, 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...
1
7932
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 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...
0
5761
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...
1
4575
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4174
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.