Q: it goes to default.aspx

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I have a logon.apsx page and when I clicked LogOff button, user is directed
to this page. For the first login user is able to go to myApp.aspx through
logon.aspx but once he/she logs of and try to login again system tries to
direct it to default.aspx and I do not have this kind of page. How can I keep
myApp.aspx as permanent page after login.
Thanks,
Jim.
 
How have you implemented your 'log off'? What authentication method have
you specified in the web.config file?

Usually default.aspx is the first page a user will see when they enter a url
to a site without specifiying a particular page.

MattC
 
here is my authentication mode:
<authentication mode="Forms">
<forms loginUrl="logon.aspx" name="adAuthCookie" timeout="60"
path="/"></forms>
</authentication>

log off brings me to the logon.aspx, but next time login takes me to
default.aspx.
First login does not have a problem. So, if I close IE and come back, I do
not have a problem.
 
In web.config you can configure defalut.aspx to not require an authenticated
user:

<location path="default.aspx">
<system.web>
<authorization>
<allow users="?" />
</authorization>
</system.web>
</location>

-Brock
DevelopMentor
http://staff.develop.com/ballen
 
Using the Personal Web Manager in the control panel\administrative tools,
you can set the default page to be anything you like. By default it is
default.htm, etc, but you can set it to be BiteMe.aspx if you would like to.

Steve
 
Back
Top