473,320 Members | 1,535 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,320 software developers and data experts.

cookie lost when browing with Windows Explorer

Hi all,

I am using Forms authentication with login.aspx page as below to issue a
ticket, then send the cookie to the client such that next request from the
client should bring the credential.

It works perfectly with Internet Explorer. But if I use Windows Explorer to
access the web site, the cookie is missing upon the subsequent request.
Does not Windows Explorer also use IE component to access the web site?
Thanks a lot.
Frank
FormsAuthenticationTicket authTicket = new
FormsAuthenticationTicket(
1,
empName,
DateTime.Now,
DateTime.Now.AddMinutes(30),
false,
userData );

string encryptedTicket =
FormsAuthentication.Encrypt(authTicket);

HttpCookie authCookie =new HttpCookie
(FormsAuthentication.FormsCookieName, encryptedTicket);

Response.Cookies.Add(authCookie);

Nov 17 '05 #1
1 2180
Perhaps Windows Explorer runs in a different security zone (like email
does). This zone might not accept cookies. My guess is that's your
problem. I can't really suggest a solution though, except clocking it as an
issue, and advising people not to do it!

Paul

"Frank" <fr*******@yahoo.com> wrote in message
news:e$**************@TK2MSFTNGP11.phx.gbl...
Hi all,

I am using Forms authentication with login.aspx page as below to issue a
ticket, then send the cookie to the client such that next request from the
client should bring the credential.

It works perfectly with Internet Explorer. But if I use Windows Explorer to access the web site, the cookie is missing upon the subsequent request.
Does not Windows Explorer also use IE component to access the web site?
Thanks a lot.
Frank
FormsAuthenticationTicket authTicket = new
FormsAuthenticationTicket(
1,
empName,
DateTime.Now,
DateTime.Now.AddMinutes(30),
false,
userData );

string encryptedTicket =
FormsAuthentication.Encrypt(authTicket);

HttpCookie authCookie =new HttpCookie
(FormsAuthentication.FormsCookieName, encryptedTicket);

Response.Cookies.Add(authCookie);

Nov 17 '05 #2

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

Similar topics

1
by: jiangcheng.bao | last post by:
We have a webpage, which pops up a new window, prompting logged-in user to upload images. This works completely fine with regular internet explorer because we use cookie to verify if users are...
18
by: Paul | last post by:
I link to a web site from an Excel spreadsheet. The page i link to is getCookie.asp which sets a cookie then returns back some html which opens a new window, to the same site but a different page...
3
by: lucpustjens | last post by:
Hello, I want te determine the client operating system, because I need to kno the default cookie directory. If there is a way to determine the cooki directory directly, than it is also good. ...
4
by: Wally | last post by:
I have a record set (rs) that contains 25 barcodes values that I set to true in a cookie. (see code section below) If I read the cookie from within the same page that created it, I see all 25...
2
by: jrefactors | last post by:
There are two cookie types: 1) session cookie. 2) persistent cookie is the same as tracking cookie? Is that correct? For windows machine, the files in C:\Documents and...
3
by: Eþref DURNA | last post by:
My Aim is to make a windows application download which support session and cookies. There is a web site which gives images as links like this...
3
by: HIK | last post by:
I have an ASP.NET application on a Win2k3 server. The user is directed to form B (with a query string that contains the logon information). Form B refers to Form A which validates the user...
2
by: achoo | last post by:
I have two versions of the same program that send requests to a Web service. One version is a Windows application written in C#, and it properly handles a cookie created by the Web service. All...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.