cookies

JSP send cookie to a different sub-domain

Cookies are store under domain-name. For example, a cookie that generated by sub1.xxx.com/login.jsp can be stored in sub1.xxx.com, or xxx.com. Now I am wondering if we can store the cookie in sub2.xxx.com? ...

CSS Images and Cookies

Hello, I've set up a sub-domain on my server that serves css and images (to avoid cookies). The 1st time the page loads, everything is fine. The 2nd time however, I see that the css and images contain cookies. Is there something I'm missing? EDIT: Solution found, the following text clarifies the issue. Restricting google analytics ...

HttpWebRequest losing cookies

I have a client application that is communicating with an ASP.NET web service using cookie-based authentication. (the clients call a login method which sets a persistent cookie that is then re-used across requests within the logon session). This has been working fine for some time, but I have started getting error reports from a few ma...

Rails + Facebook Connect Offline Access (the definitive solution)

I have a rails application which lets you create a new account using FB connect, the issue that I' having (and many others) is how to get a hold of the infinite session key after the user has granted 'offline access' The user flow: Click "Connect" to authorize my application I get a temporary session key (as expected) I prompt the use...

mulltiple account cookies on single machine

consider this, If one is user of a Web application like : A someone visits SomeWebSite.com as a normal User (registered) HttpCookie cookie = new HttpCookie("LastVisit"); cookie.Value = DateTime.Now.ToString(); cookie.Expires = DateTime.Now.AddDays(1); Response.Cookies.Add(cookie); B visits SomeWebSite.com, using another account as...

Editing local cookie values

I'm attempting to do some soon-to-be-routine testing for cookie value injection for some of my web apps (ASP.NET, if that ends up mattering). I'm trying to insert some Javascript and SQL-specific code for this, but having some problems. I have FireFox, IE 7 and 8, and Chrome. FireFox's Add N Edit Cookies extension won't allow me to chan...

Web form Autosave using cookies vs ajax post to server

The two major form autosave implementations I can think of are either based on cookies, or based on periodic ajax updates to the server. I'm trying to decide which is a better option. The advantage of cookies is that it's not server intensive, and with some good code can be implemented to not pollute the user's cookies. The server upd...

RFC question about cookies and paths

I'm trying to set a session cookie restricted to a particular path (let's say /foo) when a user logs in. The complication being that the login page is on /, but the request immediately redirects to /foo/something. Something like this: Request: POST / HTTP/1.1 username=foo&password=bar Response: HTTP/1.0 302 Found Location: http://e...

how do i delete cookies

how do i delete a cookies using javascript?? can i have it run whenever my browser start?? or can i specific what cookie file to delete? ...

jQuery Tabs; cookie trouble..

I'm having trouble finding out how to set jQuery cookie for my tabs on this page: http://onomadesign.com/wordpress/identity-design/alteon-a-boeing-company/ My jQuery Tabs code is like this: $(document).ready(function(){ $(function () { var tabContainers = $('div.sc_menu_wrapper > div'); $('a.tab').click(function () { ...

Page Preview with JavaScript?

So I'm using the Ajax Control Toolkit and it's HTML Editor. I'm wondering what is the best approach to create a complete page preview? I have multiple HTML Editor's on the page so I need to get the content of each HTML Editor and save it to a cookie or something, then have a popup with the preview page, which loads the info from the co...

Cookie being deleted unexpectedly by the application

I am having an issue with a cookie that keeps getting deleted by the application. When you go into the application, if the cookie does not exist, it gets created. This works fine and everything in the cookie is stored correctly. When I click on a link to go to another page, once everything loads completely, the cookie gets deleted from...

how to save and retrieve cookies using ajax webservice calls

Hi I have web app which stores certain things on a page in a cookie when the page posts back in case the user doesn't finish what they're doing and come back later. But now I must do a javascript time-out and actively save the info to the cookie rather than wait for the user to postback. All my cookie code is on server side where I use...

Javascript Cookie and Redirect Question

Hello, I have two scripts that do what I want, but I need to combine them. Basically if there is a cookie for "US" then it let's the user browse the US site. However if no cookie exists then I want it to run the Geo redirect based on location. They both work on there own but I can not for the life of me get it to do the cookie part firs...

Using Facebook connect inside an IFrame (Not an Iframe inside facebook)

Hello, I'm trying to use Facebook connect in an IFrame. It seems that after the user finishes authenticating and granting my app permissions the Facebook cookies aren't saved on the browser. This is the scenario: 1) The user presses the connect button inside my Iframe. 2) The user is authenticate with FB Connect. 3) User grants perm...

Google App Engine: Easy way to work with GET, POST and Cookies

When using webapp from Google App Engine, how can I distinguish POST and GET? Which one gets priority and how can I seprate them? A piece of code below shows the way to obtain a POST/GET field value: class AddWordHandler(webapp.RequestHandler): def post(self): theWord = str( self.request.get('theWord', default_value="no") ) ...

setting js simple cookie

Hey All, I've been out of web development for a while now so very rusty. I need to make a cookie If the user visits the site > set cookie If user comes back to site > read cookie If time since user last arrived is less than 24hrs > set the ID of a div to style="display:none;" im struggling and would really appreciate some guidance. ...

Browser extension to create independent cookie stores narrower than spec.

Does anyone know of a browser extension (preferably Firefox) that allows you to create independent cookie stores at a finer (and configurable) granularity than the specification? E.g. say http://a.example.com/ first sends Set-Cookie: a=bar; expires=Fri, 31-Dec-2010 23:59:59 GMT; path=/; domain=.example.com So clearly this would also ...

Can two different browser share on cookie?

Hi Friends My requirement is pretty interesting, I want to maintain one cookie between two different browser for same domain. so lets say I have create one cookie with name "mydata" and value "hiscal" from IE, then if i browse same website from firefox and trying to read cookie "mydata" then system should give me value "hiscal" but ...

How to intelligently load pop up form using jQuery?

I have created a jQuery a pop up form which I intend to load each time a user visits to my site. And then prevent it from loading if he hasn't left my site yet. How can I tell jQuery to do that? ...