View Single Post
  #1 (permalink)  
Old May 23rd, 2007, 06:00 AM
shujamughal shujamughal is offline
Registered User
 
Join Date: May 2007
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with Form based Authentication



 Hi All

I have a problem with form based authentication. i have made an web application using vs2005 then i publish this application to a folder then i create a virtual directory that point to the folder that contains publish website. now the problem is that when i try to open this website from network computers by giving correct username and pass then it did not redirect to home page. it is still on login page, i did not use login control i use the simple textboxes and made following configuration




<configuration>
  <system.web>
    <authentication mode="Forms">
      <forms name=".COOKIEDEMO"
             loginUrl="login.aspx"
             protection="All"
             timeout="30"
             path="/"/>
    </authentication>
    <authorization>
      <deny users="?" />
    </authorization>
  </system.web>
</configuration>

and

 FormsAuthentication.RedirectFromLoginPage(UserEmai l.Value,
                                                true);

can anybody help me in this matter. it work fine on local computer

Bye