Print Page | Close Window

Automatically switching pages without use

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=5673
Printed Date: 30 March 2026 at 11:41pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Automatically switching pages without use
Posted By: jeffrey.sweeney
Subject: Automatically switching pages without use
Date Posted: 11 September 2003 at 7:58am
With some assistance from folks on the forum I've been able to modify an out of box portal application so it bypasses the need for a user to login, but instaead grabs the users NT authentication info to validate the user.

The problem I now have is the page initially starts on default.asp, the switches to the login.asp page where it authenticates the user. Fine so far, but in order for the authentication to occur the user needs to have some type of interaction with the screen (the result of an input type=submit. I'd like this to be seemless (ie require no input from the uuser). Here is the section that prompots for user input (and I assume the section I need to modify). I can remove the input type = password and the input type = "text" boxes which leaves me with just an OK button on my page. But I have to depress this to get the authentication to pass and bring up my default.asp when properly authenticated.

<form name="loginform" action="./login.asp" method="POST">
<input type="hidden" name="cookieexists" value="false">

<table border="0" width="109%" cellspacing="0">
    <tr>
      <td width="29%">
        <p align="left">Login Initials: </td>
      <td width="80%" colspan="2"><input type="text" name="Initials" size="8"></td>
    </tr>
    <tr>
      <td width="29%">
        <p align="left">Password:</td>
      <td width="48%"><input type="password" name="Password" size="20"></td>
     <td width="32%">
        <p align="left"><input type="submit" value="OK" name="OK"></td>
    </tr>
    <input type="hidden" name="url" value="<%=String(Request.QueryString("url"))%>">
    </table>
</form>



Replies:
Posted By: KCWebMonkey
Date Posted: 11 September 2003 at 2:03pm

why don't you just grab the username with
Request.ServerVariables("LOGON_USER")

and pass it as a querystring to the login?



Posted By: Gary
Date Posted: 12 September 2003 at 2:12am
Either that or use a client-side cookie.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net