cookies

Storing multiple values in cookies

I have very large website which uses a lot of cookies. There are approx. 14 different cookies are there. I have different cookies for each item. When a user surfs the site they will have 14 cookies in their browser. I do not want this. I want a single cookie for my site that will have 14 items and I can add,edit and delete them. I trie...

J2EE Filters not able to get cookies?

Why aren't cookies able to be referenced from a servlet filter? It just seems beyond me that J2EE wouldn't allow you to sanitize cookie values: public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws ServletException, IOException { r...

If there is a set-cookie response from an xmlhttprequest, will the browser honor it and set the cookie?

I'm not trying to send cookie data with the xmlhttprequest, rather I'm trying to use the xmlhttprequest to set cookies for the session without requiring user interaction. ...

Getting the value from cookie and storing in the database

Hi, I want to store the search url as a cookie in client side and write this url back to the database.The code below is not showing any errors but it is not writing the url string in database.I tested individually with writing url in database it works fine.Just its not working when i was trying to do from cookie.So please give me if you...

How can I not send a cookie when I use the Cache-Control header in Catalyst?

I'm using sessions in my Catalyst app via Session, Session::Store::DBIC, and Session::State::Cookie. I have a few controllers and methods that send out data with a Cache-Control: public header, so its essential that the Set-Cookie: header not go out with those responses (otherwise, it'd be cached and sent to other clients, leading to p...

.NET login control inconsistent

I have the following login control using .net membership: <asp:Login ID="l_Main" runat="server" MembershipProvider="SqlProvider" DestinationPageUrl="Pages.aspx" /> Config: <authentication mode="Forms" > <forms path="/ad" loginUrl="/Admin/Login.aspx" name=".ASPXFORMSAUTH" /> </authentication> <membership default...

Does uploading with Silverlight suffer the cookie bug like flash?

When using flash to upload a file to a web server, it sends cookies from IE only. This breaks things like session and FormsAuthentication in ASP.NET. Does silverlight have this problem? ...

To understand a line about a login -variable in a session

What does the following line mean? Put the boolean variable isLogin to your session such that you check the session each time your user goes to the secured site. I would like to know how you can put a variable to a session. I know at the abstract level that session is a semi-permanent interactive information interchange, al...

ASP.NET webforms: set cookie using jQuery on the OnSelectedIndexChanged event

Consider the scenario where: an ASP.NET webform page has a DropDownList and a ListView. this DropDownList must set a cookie value on its OnSelectedIndexChanged event. the DropDownList is also set to AutoPostBack="True" to force the ListView to reload using the DropDownList's new value. the page is referencing current JQuery libraries, ...

Is there a way to read the browser's cookie from a java applet?

I have a java applet that needs to do http requests to the server. A quick experiment showed that the session id cookies from the browser is not sent along, so i'll have to set it manually. Currently, I see 2 possible solutions: somehow get hold of the cookie data from within the applet pass the cookie information into the applet's c...

Adding a cookie to web service port client

I'm using a web service in my app that requires a specific cookie to be set in order access it's methods. I was using a generated wrapper class for that service that was created using wsdl.exe tool. Everything is working ok using that method. // this is the instance of object generated with wsdl.exe WSWrapper service = new WSWrapper();...

Cookie getting unset when a read attempt is made?

Hi SO, got a strange issue for you. I created a control that inserts a record into a Database and writes a cookie to the user's machine. Here is the cookie writing code snippet: protected void CreateCookie(Guid id, DateTime expires) { var oCookie = new HttpCookie("gsow"); oCookie.Value = id.ToString(); oCookie.Expires = e...

Internet Explorer xx.yy website problem

If you have site following this pattern(http://xx.yy/ ) internet explorer does not hold any cookies . Any solution ? ...

how can you tell if session cookies are being used?

If I'm looking at someone else's rails app, what's the first place to look if I want to know where their sessions are stored - cookies/db? ...

Can session be transfered to different domain pointing to the same CF instance?

Let's say I have localhost and localhost2 both pointing to 127.0.0.1 in //localhost/test/test.cfm (\wwwroot\test\test.cfm) <cfset session.name="HAHA"> <cfcookie domain=".localhost2" name="CFID" value="#session.cfid#"> <cfcookie domain=".localhost2" name="CFTOKEN" value="#session.cftoken#"> <cflocation url="//localhost2/test/test2.cfm" ...

ASP.NET MVC CookieTempDataProvider: any experience?

UPDATE: looks like I've misunderstood what TempData is for and what it isn't. It definitively shouldn't be used to "keep certain session-wide data" as I asked initially (see ASP.NET MVC TempData Is Really RedirectData why). I've modified the question accordingly. Has anyone used CookieTempDataProvider for TempData storage? Are there any...

Is it possible to verify the domain that a cookie was set for using Rails integration tests?

I'm using the following technique to set a wild-card cookie for our domain: cookies['root_domain_flash_warning'] = { 'value' => 'mistakes have been made!', 'domain' => ".#{APP_DOMAIN}", 'expires' => 2.minutes.from_now } Which seems to work handily. Unfortunately I can't seem to look up anything but the value associated with the...

modifying and protecting cookies

I am trying to modify a cookie, specifically the pass_hash cookie that the ipb forums set. I have tried several different extensions for firefox to modify this cookie and set it, adn cannot seem to do so. The cookie seems to expire as soon as it is created. I am trying to set it to expire one year from now. I can not modify this cookie ...

PHP cookies problem, works in Firefox not in other browser.

Hello, I've a problem with setting cookies in php. I've to say that I'm not very experienced with php, so maybe is a very stupid problem. I've an ajax rating system that should check a cookie to see if the the photo has already been voted. The page called with ajax check for the cookie, add the id of the photo you are voting to it and...

PHP: Unique visits/hits to specific items using cookies/ip...

Hi, I use a simple MySQL table to count day hits for specific pages/items in a website. Using 'id' column for page/item ids, 'date' for the day of the visits/hits, and 'hits' column for the number of hits. Everytime someone visit the page the value of hits for that specific date is updated to +1. But, the value is updated one more time...