Hello, I am setting a cookie, but I don't want it to just work for one directory. How do I make it to where it's read throughout my whole site? I'm pretty new at JavaScript, thanks guys!
<script>
function setCookie(val) {
var d = new Date();
d.setDate(d.getDate() + 300);
document.cookie = "roster_count" + "=" + escape(val) + "...
I have been asked to build a tabbed section on pages that have RESTful URLs without a trailing slash (.NET MVC), for example http://myhost/books/the-amber-spyglass
For the tabbed sections to be a bit more user friendly I want them to remember which tab was open on each page as the user moves around, so that if they return to a book the...
I have a custom tag that does some processing and then sets a cookie. However, the cookie wasn't being set, and I couldn't figure out why. Another developer pointed out that because we're using a template system, the point at which the tag evaluates, the response header has already been flushed as a part of an include. Since the header h...
Since the Flash Player (or, more exactly, the URLLoader class) will not let you read HTTP response headers or cookies set by the server, and if you get hold of a session cookie through some workaround like reaching out to the browser and run JS, you can't send it to the server, because, among others, the Cookie header will be blocked.
N...
Hi,
I am unable to read the cookie using $_COOKIE['mycookie']. I am using PHP-Apache on Linux box. Is there any seeting in php.ini or httpd.conf to activate cookie.
Thanks
...
I am using DotNetOpenAuth in my ASP.Net Website. I have modified it to work with Facebook Connect as well, using the same methods and database structures. Now I have come across a problem.
I have added a Facebook Connect button to a login page. From that HTML button, I have to somehow pull information from the Facebook Connect connect...
There's no access to the HTTP cookies from within a Flash movie, but I now have repeatedly read that Flash Player is supposed to take care of session cookies automatically. I could, however, not find any documentation about this, and it sure didn't work with my Flex client running against a Struts backend using the default JSESSIONID coo...
Background
I am working on a web application built on Django. I use the auth context_processor, which causes a Vary: Cookie header on each response (See http://code.djangoproject.com/ticket/6552)
I return images through a Django view to check user permissions, etc. These images should be cached on the browser for an hour. The images...
Title says it all: Can cookies set using HTTP be read using HTTPS?
...
Whats the best practice for getting a commenter's email address from the cookie (this is for a WordPress plugin)? Part of my plugin relies on having an email address and I'd like to try to get it even if they are not logged in by checking for the existence of a comment cookie (which should be there if they've made a comment in the last y...
this questions is linked with my other question log in with browser and then ruby/mechanize takes it over?
I am not able (hopefully I will in near future :-) to log into one website using ruby/mechanize so I was thinking if there is any workaround for the log in part. After that I want my script to take over and do its job.
Could some...
How to show a message only if cookies are disabled in browser? like http://stackoverflow.com show if JavaScript is disabled.
...
I have a CookieJar that's being used with mechanize that I want to add a cookie to. How can I go about doing this? make_cookie() and set_cookie() weren't clear enough for me.
br = mechanize.Browser()
cj = cookielib.LWPCookieJar()
br.set_cookiejar(cj)
...
I'm using drupal with varnish, and I need to teach it about cookies. Anyone know where to start? Google does me no favors, thank you all in advance.
http://drupal.org/node/700022
...
Let's suppose I have a sign-in form. When I sign in successfully I am redirected to the logged in home page. Currently, when I close this page without signing out, and re-open Firefox, this logged in home page is started again.
I want it so that when the user closes their browser the session is the session is expired and when they nex...
Can anybody explain the following:
The unique JSESSIONID generated by the
server for every client is exchanged
between the client and server using
Hidden form field
Thanks
...
I'm using Perl for this but I'm not sure that matters here, this is raw HTTP.
I have various services which I've built a central login for. The services can be run off-site by third parties and I handle all the handshakes securely, with the central site always maintaining login state with sessions and session cookies.
The problem I'm ...
We currently have a message option on our site that displays any message we add via the CMS to logged in users, but what would be the best way to offer a 'hide' option? This way if that particular user doesn't want to see the message again they could hide it? Any suggestions welcome...
...
My website is language independent, I have several language packs that I include based on user selection.
User selection form:
<form action='' method='POST'>
<select name='language' onchange='this.form.submit();'>
<optgroup>
<option>Language</option>
<option value='eng'>English</option>
<o...
Hi everyone
I want to add remember me option in my login page.Now is it possible without using session or cookie and tell me which one should i use here cookie or session...
Now if i am signed out and shut down my pc and then again start it as i enter the url of my login page either username and password muse be filled in both boxes or...