473,219 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,219 software developers and data experts.

cookieless Forms Authentication - please help...

I'm writing an ASP.NET 2.0 application using the new Membership
providor and I'm having trouble.
I have created the roles, logins, login controls, etc... and I can log

in to the site. Â*However, as soon as I'm successfully
authenticated, I 
click on a link and it challenges me for
credentials again! Â*Doesn't 
matter which links I click, they all do
it.
I'm also having trouble with cookies. Â*I want to use cookies, but I

can't get them to work in either IE7 or IE6. Â*Here is my

<authentication> section from web.config:
<authentication mode="Forms"> 
<forms loginUrl="login.aspx"
defaultUrl="/default.aspx" 
name="secAuthCookie" cookieless="UseUri"
Â* Â*protection="All" 
slidingExpiration="true" timeout="90" path="/"
/> 
</authentication>
I've tried setting cookieless to all of it's possible values,

UseCookies, UseUri, AutoDetect, etc... and none of them are working.

Am I missing something? Â*Please help! Â*I've been stuck on this for
two 
days now!
Thanks! 
Jason

Jun 12 '06 #1
1 1518
st*************@gmail.com wrote:
I'm writing an ASP.NET 2.0 application using the new Membership
providor and I'm having trouble.
I have created the roles, logins, login controls, etc... and I can log

in to the site. However, as soon as I'm successfully
authenticated, I 
click on a link and it challenges me for
credentials again! Doesn't 
matter which links I click, they all do
it.
I'm also having trouble with cookies. I want to use cookies, but I

can't get them to work in either IE7 or IE6. Here is my

<authentication> section from web.config:
<authentication mode="Forms"> 
<forms loginUrl="login.aspx"
defaultUrl="/default.aspx" 
name="secAuthCookie" cookieless="UseUri"
protection="All" 
slidingExpiration="true" timeout="90" path="/"
/> 
</authentication>
I've tried setting cookieless to all of it's possible values,

UseCookies, UseUri, AutoDetect, etc... and none of them are working.

Am I missing something? Please help! I've been stuck on this for
two 
days now!
Thanks! 
Jason


Does your application use hardcoded urls back to the webserver? Or
javascript location changes you've written yourself?

In that case you need to make sure that these calls copy the
authentication token into the uri before redirecting.

Jesse Howuing
Jun 15 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tom Pester | last post by:
I experimented/researched cookieless sessions and tried it on my website. I expected the switch to cookieless sessions to be transparent but this isn' t the case at all: 1) Forms based...
2
by: rk325 | last post by:
I have a question about cookies & browser permissions and turning off cookies when creating a web site (cookieless mode in web.config). I have a web site that of course uses Session variables....
1
by: Trevor | last post by:
Hi I have built a site with some secure pages, in a subdirectory with anonymous access off, and cookeless forms security. I thought that this would be accessible to all without the need for...
0
by: Marcus | last post by:
Is cookieless forms authentication supported in asp.net 1.0? I have a website that must be cookieless, and thought that it would be a no brainer to add forms authentication. Logging in to the site...
1
by: Mark Olbert | last post by:
I'm building an ASPNET2 website which uses forms authentication but does not use the Microsoft-supplied membership providers (mostly because I don't want to create my own provider at this point, and...
3
by: Mark Olbert | last post by:
I have a website (ASPNET2) which uses cookieless authentication. <img> tags on restricted-access aspx pages appear to need the URL credential fragment (i.e., the long string that encodes the...
1
by: Mark Baker | last post by:
Hi, I am using Cookieless Forms Authentication. Due to this I get the session ID in the URL as follows: http://localhost/testcookie/(S(112ny2vvuypkkg55pzcyk4qd))/default.aspx How can I hide...
2
by: ravisingh11 | last post by:
<authentication mode="Forms"> <forms loginUrl="Login.aspx" protection="All" timeout="30" cookieless="AutoDetect" /> </authentication> Over here we can specify cookiless to be auto detect so...
0
by: studio60podcast | last post by:
I'm writing an ASP.NET 2.0 application using the new Membership providor and I'm having trouble. I have created the roles, logins, login controls, etc... and I can log in to the site. However,...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.