PC Review


Reply
Thread Tools Rate Thread

Accessing Authentication Cookie with js

 
 
Khafancoder
Guest
Posts: n/a
 
      3rd Feb 2007
Hi guys,

is it possible to access ASP.Net authentication cookie through
javascript ?

thanx

 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      3rd Feb 2007
Kanfancoder,
A "Cookie is a Cookie is a Cookie". Since Javascript can read and write
cookies, the short answer is "yes, you can".
However - being able to decrypt an authentication cookie via client script
is another issue.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net




"Khafancoder" wrote:

> Hi guys,
>
> is it possible to access ASP.Net authentication cookie through
> javascript ?
>
> thanx
>
>

 
Reply With Quote
 
Khafancoder
Guest
Posts: n/a
 
      4th Feb 2007
Thanks, but i heard abt HttpOnly cookies that aren't accessible
through JS, i want to know if asp.net uses these kind of cookies or
not !?

 
Reply With Quote
 
=?ISO-8859-1?Q?G=F6ran_Andersson?=
Guest
Posts: n/a
 
      4th Feb 2007
Khafancoder wrote:
> Thanks, but i heard abt HttpOnly cookies that aren't accessible
> through JS, i want to know if asp.net uses these kind of cookies or
> not !?
>


Most likely not. It's only supported by IE6+ and no other browsers as
far as I can tell. As it's not standard, any browser can choose to
ignore the cookie if you add the HttpOnly option.

--
Göran Andersson
_____
http://www.guffa.com
 
Reply With Quote
 
Khafancoder
Guest
Posts: n/a
 
      5th Feb 2007

Thanks, very useful.

On Feb 4, 10:32 pm, Göran Andersson <g...@guffa.com> wrote:
> Khafancoder wrote:
> > Thanks, but i heard abt HttpOnly cookies that aren't accessible
> > through JS, i want to know if asp.net uses these kind of cookies or
> > not !?

>
> Most likely not. It's only supported by IE6+ and no other browsers as
> far as I can tell. As it's not standard, any browser can choose to
> ignore the cookie if you add the HttpOnly option.
>
> --
> Göran Andersson
> _____http://www.guffa.com



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to share authentication cookie between ASP 3.0 and ASP.NET ntran005@yahoo.com.au Microsoft ASP .NET 1 30th Jan 2007 12:23 PM
Authentication Cookie? Arpan Microsoft ASP .NET 0 14th Sep 2006 07:22 AM
does cookie authentication use validation? Daves Microsoft ASP .NET 1 23rd Apr 2006 02:30 AM
Lost Cookie during Authentication yofnik@comcast.net Microsoft Dot NET Framework 1 8th Sep 2005 02:10 PM
authentication cookie timeout coollzh Microsoft ASP .NET 0 3rd Jun 2004 05:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:14 PM.