473,387 Members | 3,684 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,387 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 1532
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.