473,503 Members | 13,028 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Login Redirection Problem from Office XP Apps

I can not figure out what is going on here. I hope somebody can please
help!!!

I've got an intranet ASP3 application running on a Win2k server. This
application requires a login, so the user must first go to the login.asp
page before accessing any other .asp page. I have set up a redirection
method so that if a user pastes a URL to an internal .asp page, I store the
URL in a session variable, then I direct them to the login page. After
logging in, if the session variable is not blank, then I redirect them to
that URL.

for example:

1. user pastes into IE6 address bar:
http://domain.com/myweb/viewdocument...number=0102200
2. the viewdocument.asp code contains at the top of the page:

if session.contents("isLoggedIn") = False then
session.contents("EntryURL") = "viewdocument.asp?" & request.querystring
response.redirect "login.asp"
end if
..... then the rest of the page is below where if the user was logged in it
would retrieve the document

3. the login page is displayed to the user. they enter their username and
password. the form on the login.asp page gets submitted to the
loginresponse.asp page which has the following logic:

if app.login(request.form("username"), request.form("password")) then
session.contents("isLoggedIn") = True
if session.contents("EntryURL") = "" then
response.redirect session.contents("EntryURL")
else
response.redirect "welcome.asp"
end if
else
response.write "Log in failed."
end if

This has worked perfectly for over a year... Until about 3 months ago. We've
noticed now that if you paste the URL into the IE6 address bar, the steps
above execute correctly taking you to the correct page after logging in. If
you click on the link from a Sametime message (Lotus sametime) or from a
Lotus Notes Email it also works.

What doesn't work is when you paste the URL into an Office Document (same
problem in Word, Excel, Powerpoint) and open the hyperlink from there. What
happens is it appears that the Session.Contents("EntryURL") is not being
captured because the user gets presented with the login form, but then after
logging in they get taken to the welcome page instead of the URL they
clicked on.

We've repeated this problem on several computers. They all are running
Windows XP with Office XP and IE6. It doesn't appear to be a problem on
Windows 98 computers. I can't understand what's going on. I thought it was
cache related, but I've cleaned out my cache and the problem doesn't go
away.

Your ideas are much appreciated. Thanks!
Jul 19 '05 #1
0 1769

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

Similar topics

1
481
by: Ken | last post by:
Hi, I'm trying to access the values of properties -- summary and custom without opening Word to do a cleanup op but the customer i'm doing it for only has Office 2000. I'm using c# in .net 2003...
2
1803
by: A.M | last post by:
Hi, I am using WebForms authentication. What would be the best way to prevent two person login with same userID at the same time? Thanks, Alan
12
6941
by: ACaunter | last post by:
Hi all, I was wondering how i could write some code which would automatically open the Login Page once the session has expired? -- AdamPC@hotmail.com
2
2882
by: pv | last post by:
Hi everyone, I need help with following scenario, please: Users are accessing same web server from intranet (users previously authenticated in Active Dir) and from extranet (common public...
5
5102
by: djhexx | last post by:
Hi. We have an asp.net intranet application written in VB that uses forms authentication for all it's pages. I have a C# asp.net application that I just wrote. The company would like the C#...
3
2359
by: Katie | last post by:
Hi, I want to be able to send users links to pages in my website. But if they arent logged in I want them to first be redirected to the login page and after they login automatically be...
1
4979
by: Jakob Lithner | last post by:
When I started a new ASP project I was eager to use the login facilities offered in Framework 2.0/VS 2005. I wanted: - A custom principal that could hold my integer UserID from the database -...
3
6493
by: dev648237923 | last post by:
We have an asp.net web application that uses Forms Authentication. We need to launch a second application from links in this app. We don't want the user to have to also login to this second app. Is...
1
2982
by: Sleepwalker | last post by:
Hi, I'm currently in the process of constructing a stripped down version of the company website that will be show to people logging in from a mobile device. When the user logs in to the homepage,...
0
7296
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
7364
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...
1
7017
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...
0
7470
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
5604
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
4696
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
3186
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...
1
751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
405
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.