Questions tagged [zend-session]

Zend Session is a component made by Zend which helps in managing and preserving sessions in any application which uses Zend Libraries.

Session is a one-to-one relation between user agent (a browser) and the server-sided persistent data.

Zend_Session helps manage and preserve session data, a logical complement of cookie data, across multiple page requests by the same client. Unlike cookie data, session data are not stored on the client side and are only shared with the client when server-side source code voluntarily makes the data available in response to a client request. For the purposes of this component and documentation, the term "session data" refers to the server-side data stored in » $_SESSION, managed by Zend_Session, and individually manipulated by Zend_Session_Namespace accessor objects.

Zend_Session_Namespace instances are accessor objects for namespaced slices of $_SESSION as per Zend Documentation

140 questions
2
votes
1 answer

ZF2: Why are my sessions logging out?

My ZF2 application logs out after a short period of inactivity - say, 60 minutes or so - and I can't understand why. I have an 'auth' object which is a singleton that composes an instance of Zend\Session\Container. Its constructor creates the…
DatsunBing
  • 8,684
  • 17
  • 87
  • 172
2
votes
1 answer

session expires if user idle in zend framework issue

My Website is for internal purpose, I have checked in all request if user session is there or not. but it get expire if user is idle, I have set session like. $time = 18000; $config = new…
user3157253
  • 83
  • 1
  • 6
2
votes
2 answers

How can I access zend session in some other application that is integrated with it

I am running a Zend Framework application and I have to integrate a third party chat application and for that I need to have access of signed in user's ID, How can I access this id that is stored in Zend session. Because this is not working if…
2
votes
1 answer

Zend_Session_SaveHandler_Interface and a session_id mysterie

I'm trying to setup my own Zend_Session_SaveHandler based on this code http://blog.digitalstruct.com/2010/10/24/zend-framework-cache-backend-libmemcached-session-cache/ This works great, except that my session_id behave mysteriously. I'm using the…
Peter
  • 1,211
  • 4
  • 17
  • 32
2
votes
1 answer

How to get the Session ID from a Zend_Auth session?

Using the default Zend_Auth session storage (PHP Sessions), it creates a session ID and puts it in a cookie. If I want to get at the authenticated user's username (identity), the Zend_Auth::getInstance()->getIdentity() method gets that. However, I…
MidnightLightning
  • 6,715
  • 5
  • 44
  • 68
2
votes
1 answer

Garbage collection when using Zend_Session_Handler_DbTable

I am trying to use Zend_Session_Handler_DbTable to save my session data to the db but as far as i can see, the expired sessions are never deleted from the database. I can see a cron job running (ubuntu) which deletes the file based sessions but I…
Optimus
  • 1,703
  • 4
  • 22
  • 41
2
votes
1 answer

Save the url parameters in session

I have a route like this: resources.router.routes.home.route = /:state/:city resources.router.routes.home.defaults.module = default resources.router.routes.home.defaults.controller = index resources.router.routes.home.defaults.action =…
Ju Nogueira
  • 8,435
  • 2
  • 29
  • 33
2
votes
1 answer

Expire the Zend session if the user remains idle for 10 minutes

I am new to zend and I want to ask how can I expire a user's session namespace's particular key if a user remains idle for 10 minutes. I have a namespace defined in zend session as $session = new Zend_Session_Namespace('loginNamespace'); now when…
Faizan Ali
  • 509
  • 12
  • 35
1
vote
1 answer

Is there a way to force Zend_Session_SaveHandler_DbTable to write to the database earlier?

I have the following table that handles reserverations: CREATE TABLE `Plots` ( `Plot_ID` int(11) NOT NULL AUTO_INCREMENT, `Grid_ID` int(11) NOT NULL DEFAULT 0, `Instance_ID` int(11) NOT NULL DEFAULT 0, `Session_ID` char(32) DEFAULT NULL, …
Travis
  • 599
  • 2
  • 6
  • 16
1
vote
1 answer

Zend_Session and Expiration

I need to set a very short session (3 minutes) upon hitting a specific page on my site. If someone hits that page again during that 3 minute session, the session should update to expire 3 minutes from that time. On my "bootstrap" (it isn't a…
Travis
  • 599
  • 2
  • 6
  • 16
1
vote
1 answer

Zend Sessions Problem (beginner)

I'm teaching myself Zend am and having a problem with using my session to call a View Helper action. My controller:
Ethan
  • 5,660
  • 9
  • 44
  • 51
1
vote
2 answers

Initialize Zend_Session with already started session

Could anybody help me to understand this issue?The problem is: I have a two versions of my application that work in parallel. This means that I have sessions already started in one application that I should use in another app. First version uses PHP…
balkon_smoke
  • 1,136
  • 2
  • 10
  • 25
1
vote
1 answer

Zend-framework: How to store the form(user-written review) data till user creates a new account

I am a newbie with zend. On the web-site i am building using zend/php, people can come and write a review. By default, we allow user to write a review without checking if the user is registered, but before submitting we ask them to either login or…
ankit
  • 295
  • 4
  • 14
1
vote
2 answers

How to make do not auto session out? In zendframework

In my application.ini i do not have anything special. And i have tried as following in my Bootstrap.php, but it never worked, i get always session out auto. My goal is once a user loges in, he should be able to stay alive for unlimited session…
user285594
1
vote
1 answer

Duplicate DB sessions created upon Zend_Auth login

I must be doing something wrong. I can't seem to find the answer to my problem anywhere on the Web, and this generally means that the solution is so simple that no one needs an answer on it. I am using a database to store my session. I set it up…
Wes
  • 399
  • 5
  • 14
1 2
3
9 10