Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 22, 2011 11:01 AM by hans_v
Mar 19, 2011 11:12 PM|LINK
I try before the <asp:login , but it make table and I had alot of problem with the compatibility in another browsers, and I want improve my asp.net skills
so I decided to make my own text box with buttons and checkbox (for remeber me button).
How to deal with the cookies and authenticate ?
I know I need write
if (Membership.ValidateUser(username_inserted.Text, password_inserted.Text))
but what next?
please mark as answer if this post answered your question
Mar 21, 2011 01:28 AM|LINK
If you just want to provide a different layout, then you are not overriding the membership provider so that you can still call its functions to accomplish your job. You may find class FormsAuthentication helpful for your situations.
if (Membership.ValidateUser( .., ..)
Because you are just using the default membership provider, you don't need to worry about the cookies, you can just call the functions under FormsAuthentication. If I remember correctly, there are functions you can set the cookie expiry and other things.
Mar 21, 2011 09:11 AM|LINK
what is the functions for cookies?
Mar 21, 2011 10:35 AM|LINK
To set the cookie use:
Mar 21, 2011 03:02 PM|LINK
I try before the <asp:login , but it make table
You can convert it into a template
Mar 21, 2011 08:06 PM|LINK
Mar 22, 2011 11:01 AM|LINK
Click on the Smart Tag, and then click "Convert to Template"