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

<authenticat ion> section from web.config:
<authenticati on mode="Forms"> 
<forms loginUrl="login .aspx"
defaultUrl="/default.aspx" 
name="secAut hCookie" cookieless="Use Uri"
Â* Â*protection="A ll" 
slidingExpir ation="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 1 1574 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 
<authenticat ion> section from web.config: <authenticati on mode="Forms"> 
<forms loginUrl="login .aspx" defaultUrl="/default.aspx" 
name="secAut hCookie" cookieless="Use Uri" protection="All " 
slidingExpir ation="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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 authentication doesn't work
I read that the Whidbey release will support this and you can make it work
today:
http://www.codeproject.com/aspnet/cookieless.asp
Still, it's a showstopper for most websites
|
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.
But we decided to turn off the cookieless mode because the client
specifically said her browser did not allow cookies. Anyway, when
searching about it, I found out that by setting cookieless = true the
session cookie is embedded into the URL sent...
|
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 Low
Privacy setting. In fact the users still need low privacy.
What am I doing wrong?
|
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 is OK, but
when the session expires and I call FormsAuthentication.signout() in
the Session_End sub, the new session that begins on the next page
refresh has the same ID as the old session ID, and I am not redirected
to the login page (can still...
|
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 the supplied stuff comes with a lot of baggage I don't want/need).
In ASPNET1.1 what I would do was something like the following, after authenticating the user on the login form:
FormsAuthentication.SetAuthCookie(userInfo.UserID, false);
...
| |
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 user's
credentials) to be found...which is contrary to my understanding (under 1.1, at least) as to how resources are controlled. Example:
This tag on a restricted-access aspx page:
<img src="/data/somefile.gif">
Shows up as "not found" (i.e.,...
|
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 this session Id string from being displayed in the URL while
using Cookieless form authentication?
|
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 it uses cookies
if the client supports it or URL mangling(munging) if it doesnt.
|
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, 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...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |