Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > tracking sessions

Reply
Thread Tools

tracking sessions

 
 
panda
Guest
Posts: n/a
 
      10-25-2006
Hi,

I have a section of my intranet that i track with a session. That is to make
sure that users have to login before they are able to use / view certain web
pages.

In my wwwroot directory i have two locations where these files are placed.
The main files are in admin the other is in news.

With these two folds they work fine. This is what i have on the web pages


<%
'If the session variable is False or does not exsist then redirect the user
to the unauthorised user page
If Session("blnIsUserGood") = False or IsNull(Session("blnIsUserGood")) =
True then
'Redirect to unathorised user page
Response.Redirect"unauthorised_user_page.htm"
End If
%>

However, i have another section of the intranet that is located in a
different logical drive. I have created a virtual site mapping to this
folder. I can access those webpages fine. HOwever when i add the code

<%
'If the session variable is False or does not exsist then redirect the user
to the unauthorised user page
If Session("blnIsUserGood") = False or IsNull(Session("blnIsUserGood")) =
True then
'Redirect to unathorised user page
Response.Redirect"unauthorised_user_page.htm"
End If
%>

and try to access it after logging in, the web page is unable to detect the
session.

Why is that?

Thanks

 
Reply With Quote
 
 
 
 
Anthony Jones
Guest
Posts: n/a
 
      10-25-2006

"panda" <> wrote in message
news:0AD6D8C1-8247-40AD-9405-...
> Hi,
>
> I have a section of my intranet that i track with a session. That is to

make
> sure that users have to login before they are able to use / view certain

web
> pages.
>
> In my wwwroot directory i have two locations where these files are placed.
> The main files are in admin the other is in news.
>
> With these two folds they work fine. This is what i have on the web pages
>
>
> <%
> 'If the session variable is False or does not exsist then redirect the

user
> to the unauthorised user page
> If Session("blnIsUserGood") = False or IsNull(Session("blnIsUserGood")) =
> True then
> 'Redirect to unathorised user page
> Response.Redirect"unauthorised_user_page.htm"
> End If
> %>
>
> However, i have another section of the intranet that is located in a
> different logical drive. I have created a virtual site mapping to this
> folder. I can access those webpages fine. HOwever when i add the code
>
> <%
> 'If the session variable is False or does not exsist then redirect the

user
> to the unauthorised user page
> If Session("blnIsUserGood") = False or IsNull(Session("blnIsUserGood")) =
> True then
> 'Redirect to unathorised user page
> Response.Redirect"unauthorised_user_page.htm"
> End If
> %>
>
> and try to access it after logging in, the web page is unable to detect

the
> session.
>
> Why is that?


There's no such thing as a 'virtual site mapping', I think you mean virtual
folder. Make sure that the virtual folder isn't itself configured as an
application. Use the virtual directory tab in the properties dialog and
click the remove button.


>
> Thanks
>



 
Reply With Quote
 
 
 
 
panda
Guest
Posts: n/a
 
      10-26-2006
Hi,

Sorry it is a virtual site mapping to a folder not in the inetpub directory
 
Reply With Quote
 
Anthony Jones
Guest
Posts: n/a
 
      10-27-2006

"panda" <> wrote in message
news3CBB4CC-13FE-4D6B-BDA6-...
> Hi,
>
> Sorry it is a virtual site mapping to a folder not in the inetpub

directory


Like I said there is no such thing as a 'virtual site mapping'. You have
either create a new web site in addition to the default web site already
present or you have added a virtual folder to an existing web site. I
suspect you have created a virtual folder and accidentally set it up as an
application in it's own right.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cookieless Sessions (Sessions Without Cookies) and Security scottymo ASP .Net Security 3 09-29-2006 11:00 PM
Tracking Someone Tracking Me Edw. Peach Computer Security 4 07-07-2005 05:50 PM
tracking sessions mike parr ASP .Net 3 05-06-2004 11:25 AM
Tracking Sessions in a Python CGI app. Andrew Chalk Python 2 09-05-2003 09:46 PM
Re: Relationship between IIS Sessions and ASP.NET Sessions? Ken Cox [Microsoft MVP] ASP .Net 1 08-08-2003 03:22 PM



Advertisments