Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forms Authentication 1

Status
Not open for further replies.

GHolden

Programmer
May 28, 2002
852
GB
Hi,

I have a folder which is secured using forms authentication.

I have a hyperlink on my menu that points to a form with-in this folder.

When I click on this link my Login.aspx form pops up, credentials are validated against a database and then it redirects to the initial requested page.

Everything works fine on my development machine.

When I upload the site I encounter the following problem.

I click on the link, the Login.aspx form pops up, I enter valid login details but it just keeps displaying the Login.aspx form over and over (I have checked that the login details are definitely correct).

If instead of clicking on the hyperlink, I type the url into the browser (copied and pasted from the code behind the hyperlink just to ensure it's identical), the Login.aspx window pops up, I enter the valid login details and it works!?

BTW I changed the hyperlink to be a complete path (e.g. Folder/file.aspx) not just a relative one just to see that was the problem and still no joy.

Any thoughts gratefully received...


There are two ways to write error-free programs; only the third one works.
 
>>If instead of clicking on the hyperlink, I type the url into the browser (copied and pasted from the code behind the hyperlink just to ensure it's identical), the Login.aspx window pops up, I enter the valid login details and it works

thats strange. Do you have access to debug the app? otherwise try setting some response.writes() to see where exactly this is happening.

Did you do a cross browser check on this???

Known is handfull, Unknown is worldfull
 
I don't believe it... I've been at this for 2 weeks now and it works fine in Firefox...

At least I know I'm not going mad! And that's worth a star alone!

Any idea why?



There are two ways to write error-free programs; only the third one works.
 
cs8msm

Yes I do.

BTW I'm using IE7 but I just checked and the same thing happens in IE6

There are two ways to write error-free programs; only the third one works.
 
Cheers, didn't know that that forum existed.

Thanks for the help.

There are two ways to write error-free programs; only the third one works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top