Note: This is NOT an ASP.NET MVC question related to the [RequireSSL] attribute. Thats completely different - just has the same name.
ASP.NET Forms authentication has the RequireSSL property which requires that the auth cookie for ASP.NET membership is only ever sent over SSL. This is to prevent someone from stealing the cookie (such ...
I'd like to be able to pull out the data stored in the Google Analytics tracking cookie with all the campaign tracking information using Javascript. It needs to work with the newer version of GA using ga.js, not urchin.js. I found a method that works with urchin.js but we don't use that for our tracking. Does anybody know how to extra...
On a subdomain -- a.test.com -- I'm trying to read the cookies set at .test.com. If I use document.cookie in JS, all i'm getting are the cookies from a.test.com. What is the syntax or route to read the cookies from .test.com?
I'm pretty certain you can read up -- from sub domain to fqdn -- but you can not read down -- fqdn to sub doma...
Using Chris Atlee's python poster library is there any way to include cookie handling?
I have python http login code, which works with cookies:
cookiejar = cookielib.CookieJar()
urlOpener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookiejar))
request = urllib2.Request(login_url, params)
result = urlOpener.open(request)
But whe...
Hi everyone.
For example, I have cookies
my_cookies = {'name': 'Albert', 'uid': '654897897564'}
and I want to open page http://website.com
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor())
opener.addheaders.append(('User-agent', 'Mozilla/5.0 (compatible)'))
opener.open('http://website.com').read()
How I can do this with...
Hey
I have a script that POSTs all data sent to it directly to another page.
On the second page, the script calls for several variables set as
$var = $_COOKIE['name'];
The problem is that the script seems to not set the variables that read data based on cookies any time the script is called from a background cURL/Snoopy POST.
How can ...
Hi everyone, i think my problem is a little weird, ive wrote a little class to log in/out user, entire system is based in MVC pattern, and my libraries are custom and self written,
but the problem: when i log in the user with out the $remember flag, no problems, sessions are easily set and unset. but when i activate the $remember and i ...
System.Web.HttpContext.Current.Response.Cookies["ssocookies"].Domain = System.Web.HttpContext.Current.Request.ServerVariables["SERVER_NAME"].ToString().ToLower();
System.Web.HttpContext.Current.Response.Cookies["ssocookies"].Value = tokenID.ToString();
System.Web.HttpContext.Current.Response.Cookies["ssocookies"].Path = "~/";
System.Web....
I have tried to enable httpOnly cookies in my WSS 3.0 forms-authentication application using the web.config tag. A Cenzic Hailstorm security scan report claims that cookies are being produced with the flag off, including the .ASPXAUTH cookie, one related to Discovery.asmx, and one related to WSS_AccessibiltyFeature. Here are my questions...
What options do I have to work around disabled cookies for session management?
...
Exactly what are the restrictions for handling browser cookies from javascript? Can I check if cookies are enabled for example?
...
Hi there,
I have a class called CookieMonster, its objective is to simply create a cookie based on 3 parameters passed to it. The cookie name, the cookie name-value pairs and the cookie expiry date.
I have experimented with List(of T) and Array and StringCollection, but I'm unsure which is the best for passing the name-value pairs and ...
This works in Safari, FF, Chrome, etc.:
setrawcookie('mycookie', 'myvalue', time() + 31556926);
This does not work in FF or Chrome:
setrawcookie('mycookie', 'myvalue', time() + 31556926, '/', '.localhost');
I have been using PHP for quite some time, and have never seen this behavior before.
...
I have a silverlight app, which uses forms authentication for security purpose.
I have a custom membership provider to authenticate the user. This is hooked up properly and is working.
Then, after its authenticated I have user information which I need to save (More than just the name), hence I create a custom cookie and save it. All wor...
I am looking at user/subscription management software such as aMember Pro. This uses folder protection methods to prevent access to areas of the site. As such the PHP scripts require Apache (linux/unix).
My webserver is IIS windows 2003 and I use a MySQL database to store user id and subscription status / access privileges. We really o...
I have any interesting problem that has me totally stumped.
I have a piece of production code that I built that reads an IBM LTPA token cookie set by a machine managed by another dept, validates it, and uses it to log into a system my group manages (by setting some special cookies). This single sign-on process is entirely transparent t...
All,
Although I see related topics on the forum, but I don't see a clear solution on this issue.
I am trying to set a javax.servlet.http.Cookie with an expiration time (so that it persists across browser sessions). Code:
public void respond(HttpServletRequest req, HttpServletResponse resp) {
int expiration = 3600;
Cookie cookie = new...
Whether I log into Facebook or Twitter, I'll be bombarded with cookies of the such names as:
__utma
__utmb
__utmc
__utmv
What are their functions ?
Is there a standard that governs how these are used on the serverside ?
...
Hi there,
I'm currently using Harry Maugans's motionpack.js toggle javascript file in order to collapse divs.
I'd like to know if it's possible to put it so that there is a cookie value assigned to it? That way it remembers if a certain div has been collapsed or open.
I'm currently new to javascript, so it'd really appreciate it if s...
I need an div (for advertisement) that slides down like here (when loading the page): http://www.webintenta.com/Files/JQueryCollapse.html
Tricky part: When I click on the [x] the whole div should disappear. I want it to disappear for the Browser Session or better for the IP that accessed it. Saving it to a Cookie would also be a solutio...