no problemo for beer...just ask and i will send it to u...
thanks for the tip
-----Original Message-----
From: bounce-aspx_professional-4611480@p...
[mailto:bounce-aspx_professional-4611480@p...]On Behalf Of Chris
Sent: Thursday, March 13, 2003 10:23 AM
To: ASPX_Professional
Subject: [aspx_professional] RE: Forms Authentication ( path = "/")
Payal, I wouldn't serve as librarian to many people... you owe me a beer!
:-)
Pages 163 to 168 of the C# edition should give you the basics of what you
need. I don't have the VB edition which I've heard exists somewhere. The
information is in Chapter 8, sub-section entitled "Forms Authentication".
HTH
-----Original Message-----
From: Payal Parija [mailto:pparija@y...]
Sent: Thursday, March 13, 2003 11:04 AM
To: ASPX_Professional
Subject: [aspx_professional] RE: Forms Authentication ( path = "/")
hi chris...
as of now i have access to that publication but due to lack of time.. i cant
sit thru and read the book.. can u explain a bit more as to what these
additional lines are or let me know where it is in the book
-----Original Message-----
From: bounce-aspx_professional-4611480@p...
[mailto:bounce-aspx_professional-4611480@p...]On Behalf Of Chris
Sent: Thursday, March 13, 2003 9:52 AM
To: ASPX_Professional
Subject: [aspx_professional] RE: Forms Authentication ( path = "/")
Payal, you have more work to do - not a lot! - to make Forms Authentication
work as you expect. A few lines of code in your Global.asax file are
required to persist an authentication ticket and (if you want it) a
principal object that represents the authenticated user.
Microsoft MSDN publishes a free 600-page document entitled "Building Secure
ASP.NET Applications" which provides unusually (for MS) clear step-by-step
methods with code for securing applications in a wide range of situations.
Don't be daunted by its size, it includes much repetition of steps for
various situations. Highly recommended.
HTH
-----Original Message-----
From: Payal Parija [mailto:pparija@y...]
Sent: Thursday, March 13, 2003 3:29 PM
To: ASPX_Professional
Subject: [aspx_professional] Forms Authentication ( path = "/")
I am having a problem using forms authetication..
when i add this block
<authentication mode="Forms">
<forms name = "AdGeneratorCookie" loginUrl = "User/login.aspx"
protection = "All" path = "/">
</forms>
</authentication>
<authorization>
<deny users= "?"></deny>
</authorization>
everytime i hit login it enter the next page but from there onwards if i
click a link it always sends me back to the login page... for eg: I have the
login page... after i login it sends me to the contents page ... But from
the contents page when i click on a link.. it sends me back to the login
page... why is this happening... I have reviewed a whole lot of code and i
think its because of the "path"
the way my website is set up is that login and a few pages are under a
Folder user in the root dir.
how do i set up the authentication
this is the code in my login.aspx page
if(chkCookie.Checked == true)
Response.Cookies["Login"].Expires = DateTime.Now.AddMonths(1);
FormsAuthentication.RedirectFromLoginPage(usrDetails.strLogin,
chkCookie.Checked);
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to