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

Session expired....

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

(Request.UrlReferrer) Is Nothing

I am using ASP.Net 1.1 and IIS 5.0.

Thanks,

Smith



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

(Request.UrlReferrer) 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.com> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
That property is independent of the session as far as I know.
"Peter Smith" <Pe*********@hotmail.com> wrote in message
news:Om**************@TK2MSFTNGP15.phx.gbl...
Will the below statement returns TRUE or FALSE iif the session is expired?
(Request.UrlReferrer) 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.com> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
That property is independent of the session as far as I know.

"Peter Smith" <Pe*********@hotmail.com> wrote in message
news:Om**************@TK2MSFTNGP15.phx.gbl...
Will the below statement returns TRUE or FALSE iif the session is
expired?
(Request.UrlReferrer) 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 CheckForSessionTimeout(){
if (Context.Session != null){
if (Session.IsNewSession){
string szCookieHeader = Request.Headers["Cookie"];
if ((null != szCookieHeader) &&
(szCookieHeader.IndexOf("ASP.NET_SessionId") >= 0)){
Response.Redirect(this.ResolveUrl("~/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.com> wrote in message
news:%2***************@TK2MSFTNGP14.phx.gbl...
That property is independent of the session as far as I know.

"Peter Smith" <Pe*********@hotmail.com> wrote in message
news:Om**************@TK2MSFTNGP15.phx.gbl...

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

expired?
(Request.UrlReferrer) 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
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...
6
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
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...
4
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...
6
by: NH | last post by:
How can I warn a user that their session has expired when they click on a button etc?
17
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...
2
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...
2
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...
1
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...
4
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...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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...

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.