Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 900691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:25:55+00:00 2026-05-15T15:25:55+00:00

I am using cookie plug in my application. where i display some information from

  • 0

I am using cookie plug in my application. where i display some information from cookies.
it is working fine with firefox, but have some issues with IE.
It works fine if i open a new tab in IE, it shows values from cookies, but if i close IE browser window it clears all cookies.
this is not the case with mozilla, every time i open mozilla it shows those specific values from cookies.
below is the code i use to set/get cookies.

function setCookies(){<br/>      
   if($('select[id$="ddlFromStation"]')[0].selectedIndex!=0){<br/>
      $.cookie('d_from',$('select[id$="ddlFromStation"]').val());<br/>
   }<br/>
   if($('select[id$="ddlToStation"]')[0].selectedIndex!=0){<br/>
      $.cookie('d_to',$('select[id$="ddlToStation"]').val());<br/>
   }<br/>
   if($('input[id$="txtFromStation"]').val()!=""){<br/>
      $.cookie('i_from',$('input[id$="txtFromStation"]').val());<br/>
   }<br/>
   if($('input[id$="txtToStation"]').val()!=""){<br/>
      $.cookie('i_to',$('input[id$="txtToStation"]').val());<br/>
   }<br/>
   return true;<br/>
}<br/>
$(document).ready(function(){<br/>
 if($.cookie('d_from')!=null){<br/>
    $('select[id$="ddlFromStation"]').val($.cookie('d_from'))<br/>
 }<br/>
 if($.cookie('d_to')!=null){<br/>
    $('select[id$="ddlToStation"]').val($.cookie('d_to'))<br/>
 }<br/>
 if($.cookie('i_from')!=null){<br/>
    $('input[id$="txtFromStation"]').val($.cookie('i_from'))<br/>
 }<br/>
 if($.cookie('i_to')!=null){<br/>
    $('input[id$="txtToStation"]').val($.cookie('i_to'))<br/>
 }<br/>
}); <br/>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T15:25:56+00:00Added an answer on May 15, 2026 at 3:25 pm

    You are not setting an expiry and by default cookies should expire on browser close. I’m not sure why Mozilla isn’t doing this which is the real bug.

    Try:

    $.cookie(COOKIE_NAME, VALUE, { expires: 10 }); /* Expires in 10 days */
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a web application using a cookie to store session information. I've manually
I am using jQuery Cookie Plugin and its working fine on all pages except
I want to store a cookie using something like Response.Cookies.Set(new HttpCookie(name,value); after I have
I have developed a web application and I am using a cookie to store
I'm having a problem where I'm adding a persistent cookie using Response.Cookies.Add(cookie) but this
I am using Jquery Cookie but am having difficulty setting and retrieving the info.
I'd like to remove a cookie using mod_rewrite but unfortunately the subsequent request (Chrome,FF,Safari)
i'm using the jquery cookie plugin. Everything works fine except the fact that I
I am working on internal PHP application where users login only from our network
When using suas in GAE and setting the flash_msg, for some reason the cookie

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.