473,587 Members | 2,320 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

tracking sessions

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("blnIsU serGood") = False or IsNull(Session( "blnIsUserGood" )) =
True then
'Redirect to unathorised user page
Response.Redire ct"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("blnIsU serGood") = False or IsNull(Session( "blnIsUserGood" )) =
True then
'Redirect to unathorised user page
Response.Redire ct"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

Oct 25 '06 #1
3 1317

"panda" <pa***@discussi ons.microsoft.c omwrote in message
news:0A******** *************** ***********@mic rosoft.com...
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("blnIsU serGood") = False or IsNull(Session( "blnIsUserGood" )) =
True then
'Redirect to unathorised user page
Response.Redire ct"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("blnIsU serGood") = False or IsNull(Session( "blnIsUserGood" )) =
True then
'Redirect to unathorised user page
Response.Redire ct"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

Oct 25 '06 #2
Hi,

Sorry it is a virtual site mapping to a folder not in the inetpub directory
Oct 26 '06 #3

"panda" <pa***@discussi ons.microsoft.c omwrote in message
news:D3******** *************** ***********@mic rosoft.com...
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.

Oct 27 '06 #4

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

Similar topics

3
2427
by: Shanfeng Cheng | last post by:
I write a piece of code to tracking the number of clicks on a link each day. The link usu. gets about 3000-6000 clicks per day. I just store today's click count in a one-line text file, like, 01/07/2004 1234 The first field is the date and the second field is number of clicks. I just read the current count, increase by 1 and then write...
1
1930
by: AJ | last post by:
Hi all I've just written a VERY simple shopping cart system for my own joy and edification as much as anything else. Mostly it was an exercise in learning about sessions but I want to keep adding to it. What happens at the moment is that it starts a session when the visitor enters the site. As soon as the visitor adds something to their...
2
2613
by: marslee | last post by:
I want to prevent non-registered users to view a page in my website, For example, when a non-registered user clicks the history page, the website site refuses to go there since he is not registered. what is the best way to do it? And how to identify a user has already logged in when he click the history page?
6
2036
by: Tran Tuan Anh | last post by:
Hi all, I am new to Python and desperated to look for a good Python debugger. I mean a debugger with source coding tracking. For C/C++, emacs and gud offers execellent development env. The source code tracking is extremely useful for recursive functions. I have spent time Googling but not found anything near. Thanks!
2
11173
by: runner7 | last post by:
Can anyone tell me if there is a way in PHP to determine when a session times out on the server or how many concurrent sessions there are in your application?
0
7843
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...
0
8206
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. ...
1
7967
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6621
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...
1
5713
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...
0
3840
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...
0
3875
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2353
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
0
1185
bsmnconsultancy
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...

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.