A
Arpan
Using the "SetAuthCookie" method of the "FormsAuthentication" object
sets a cookie which can be used to validate users.
Now assume that a user tries to visit an ASPX page named
"Account.aspx". Before rendering the contents of "Accounts.aspx", using
the FormsAuthentication object, I want the app to first check whether a
cookie exists or not. If no, the user should be redirected to a login
page, say, "Login.aspx" & after successful validation (i.e. after
creating a cookie) should the user be redirected to "Accounts.aspx".
Is there any method of the "FormsAuthentication" object to verify
whether a cookie already exists or not?
Thanks,
Arpan
sets a cookie which can be used to validate users.
Now assume that a user tries to visit an ASPX page named
"Account.aspx". Before rendering the contents of "Accounts.aspx", using
the FormsAuthentication object, I want the app to first check whether a
cookie exists or not. If no, the user should be redirected to a login
page, say, "Login.aspx" & after successful validation (i.e. after
creating a cookie) should the user be redirected to "Accounts.aspx".
Is there any method of the "FormsAuthentication" object to verify
whether a cookie already exists or not?
Thanks,
Arpan