473,513 Members | 2,428 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("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

Oct 25 '06 #1
3 1313

"panda" <pa***@discussions.microsoft.comwrote in message
news:0A**********************************@microsof t.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("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

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***@discussions.microsoft.comwrote in message
news:D3**********************************@microsof t.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
2419
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, ...
1
1923
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...
2
2605
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...
6
2030
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...
2
11168
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
7260
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
7537
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...
0
7525
tracyyun
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...
0
5685
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,...
0
4746
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...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1594
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 ...
1
799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
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...

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.