J
Jenny
Hi all
How can the following problem be solved:
My application uses forms authentication. Normally a
start.aspx page should be send to the client before
login.aspx is shown.
Start.aspx consist of simple JScript writing a cookie about
screen resolution followed by an automatic transfer to
login.aspx. This page is therefore test whether cookies and
JScript are activated.
But if forms authentication is activated, the only
accessible page is login.aspx. So I need first to login and
therefore set the authentication cookie in order to access
start.aspx (checking whether cookie are activated.... ).
My webconfig is:
<authentication mode="Forms" >
<forms
name="Auth-Cookie"
path="\"
loginUrl="Login.aspx"
protection="All"
timeout="25">
<credentials passwordFormat="Clear">
<user name="Test" password="Pass" />
</credentials>
</forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>
The deny setting prevent unathorized user from accessing
start.aspx. But this is necessary to make the cookie and
jscript check!
Each help appreciated!
Thanks
Jenny
How can the following problem be solved:
My application uses forms authentication. Normally a
start.aspx page should be send to the client before
login.aspx is shown.
Start.aspx consist of simple JScript writing a cookie about
screen resolution followed by an automatic transfer to
login.aspx. This page is therefore test whether cookies and
JScript are activated.
But if forms authentication is activated, the only
accessible page is login.aspx. So I need first to login and
therefore set the authentication cookie in order to access
start.aspx (checking whether cookie are activated.... ).
My webconfig is:
<authentication mode="Forms" >
<forms
name="Auth-Cookie"
path="\"
loginUrl="Login.aspx"
protection="All"
timeout="25">
<credentials passwordFormat="Clear">
<user name="Test" password="Pass" />
</credentials>
</forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>
The deny setting prevent unathorized user from accessing
start.aspx. But this is necessary to make the cookie and
jscript check!
Each help appreciated!
Thanks
Jenny