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 7012361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:14:45+00:00 2026-05-27T22:14:45+00:00

In my Zend Application , I am trying to make our authenticated users be

  • 0

In my Zend Application, I am trying to make our authenticated users be automatically logged out when they close their browser.

For that I’d write following code:

ini_set('session.cookie_lifetime', 0);

And its working fine on browsers like Chrome, Safari, IE7 and IE8, but in case of firefox, users still remain logged on when they close their browser.

Does anyone know what is causing problem?

Thanks In advance…

  • 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-27T22:14:46+00:00Added an answer on May 27, 2026 at 10:14 pm

    A value of 0 indicates “session cookie” – i.e. one that the browser should destroy when the “session” is over and the browser is closed.

    However:

    • Different browsers have different interpretations of exactly what a “session” is – some will destroy these cookies when your close the tab, some when you close the window, some won’t destroy the cookies until all instances of the browser have been closed – all tabs in all windows.
    • Since cookies are stored and transmitted by the client, they are completely the responsibility of the client. You should not rely on cookies alone to control whether a user has a valid login because they are ridiculously easy to spoof, you should implement some kind of activity timeout as well.

    Make sure you have actually ended your Firefox session when testing – close all open tabs and windows, and watch the process list to ensure there are no instances left. If you are still having a problem, you are probably looking at some kind of bug in Firefox (or maybe you’ve made some strange change in about:config) and you need to ask for Firefox-specific help – SuperUser.com would be a better place for that. One thing you can be fairly sure of is that if it works everywhere else, it’s not a problem with your PHP.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get my ZEND application up on my apache server running
I get this error when trying to load a Zend Framework application: Fatal error:
I'm developing a zend framework application that includes a simple email function. The development
I am building a Zend Framework application that performs jobs submitted by the user.
I'm trying to deploy a Zend Framework Application on my VPS. My plan was
I am trying to set up modules without my Zend Framework application and am
Possible Duplicate: Zend Framework - multiplate navigation blocks I'm trying to make breadcrumbs render
I'm trying to understand Zend Framework 2. For that, I started with Ron Allen's
I'm trying to make some ajax-functionality in my web application, but I cannot get
I am trying to use Zend's Gbase library, but I cannot figure out how

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.