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
27
votes
5 answers

PHPUnit output causing Zend_Session exceptions

I am getting numerous errors exactly like this one: Zend_Session_Exception: Session must be started before any output has been sent to the browser; output started in /usr/local/zend/share/pear/PHPUnit/Util/Printer.php/173 When running my…
Michael Moussa
  • 4,207
  • 5
  • 35
  • 53
27
votes
6 answers

Zend_Session / Zend_Auth randomly throws Error Message ps_files_cleanup_dir: opendir(/var/lib/php5) failed: Permission denied (13)

I'm currently working on a new Application using (among other things) Zend_Auth but, for whatever reason, this Error Message is showing up at any location totally randomly (or so it seams) Zend_Session::start() -…
Hannes
  • 8,147
  • 4
  • 33
  • 51
20
votes
2 answers

Change Zend_Auth storage backend $_SESSION to Memcached

I'm trying to change the session backend of Zend_Auth. But couldn't succeed it. In my bootstrap.php ; $oBackend = new Zend_Cache_Backend_Libmemcached( array( 'servers' => $servers, 'compression' => false )…
Fatih Donmez
  • 4,319
  • 3
  • 33
  • 45
19
votes
7 answers

How to clear a session container in Zend framework2

I have recently started building an application using Zendframework 2 , I have good experience in ZF1 , the major problem I am facing here with ZF2 is with sessions . Here is the way that I am creating a session container . use…
Aravind.HU
  • 9,194
  • 5
  • 38
  • 50
13
votes
1 answer

How to destroy Zend_Session_Namespace without session_destroy

I store a couple of value in a temporary session using: $job = new Zend_Session_Namespace('application'); How would I destroy only the session application without clearing all sessions.
John Magnolia
  • 16,769
  • 36
  • 159
  • 270
10
votes
1 answer

How to solve constructor injection of Zend\Session?

The architecture of the Session component in Zend Framework 2 is yet undocumented and I'm having some trouble understanding it's practical use (compared to the very intuitive Symfony Session for example). A short summary of the important…
markus
  • 40,136
  • 23
  • 97
  • 142
7
votes
3 answers

How to check logged in online users using Zend Framework

I want to know how to get the number of users currently online or having active sessions on a website using Zend Framework. I tried the usual way of reading Session save path, but its not working using Zend. Can anyone here suggest me a good method…
Sumit Ghosh
  • 3,264
  • 4
  • 40
  • 59
7
votes
1 answer

ZF2 Set Zend\AuthenticationService to use second session or cookie based on url or module

I have set up two user account modules - administrator and customer. My current set-up means if you log into administrator my app thinks you're logged in as a customer also. The solution I've decided upon is to create a session where the cookie path…
Richard Parnaby-King
  • 14,703
  • 11
  • 69
  • 129
6
votes
4 answers

Zend Framework - session id regenerated, can't stay logged in

I'm trying to store sessions in a database using Zend Sessions however for some reason my sessions die out. Im not sure if there's some code being executed which does this or whether its something else. I've noticed that the session ID seems to be…
Ali
  • 7,353
  • 20
  • 103
  • 161
5
votes
6 answers

Zend session and zend auth

I have made a login system through zend auth here is the code // userAuthentication public function authAction(){ $request = $this->getRequest(); $registry = Zend_Registry::getInstance(); $auth =…
Fawad Ghafoor
  • 6,039
  • 7
  • 41
  • 53
5
votes
3 answers

Zend Framework MVC redirecting to different controller and action

i'm trying to work out how i can stop zend or redirect zend to go to a different zend controller and action if a check within the boot strap fails. for example a get variable does not exist or more likely a session does not exist meaning the user…
zend novice
  • 53
  • 1
  • 4
4
votes
1 answer

Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start()

This is a screenshot with the error dump: I occassionaly get this error while browsing a website i am developing. Obviously session can't be started but i have no idea how to prevent this error because it occurs randomly (as it seems to me). Any…
clime
  • 8,695
  • 10
  • 61
  • 82
4
votes
1 answer

Zend_Session_SaveHandler_DbTable is wiping the Session with every refresh?

I'm basically encountering the same problem as the poster in this question. My database is initialized properly. I've tried doing the initialization of both the database and the session SaveHandler in the application.ini and in the Bootstrap. …
Daniel Bingham
  • 12,414
  • 18
  • 67
  • 93
4
votes
7 answers

Zend_Session: Session must be started before any output has been sent to the browser

I've run into this issue before, but I can't remember how to solve it. I have created a bare bones (can't get any simpler) controller, and am just trying to echo something to the browser, and I am getting this message: Fatal error: Uncaught…
Andrew
  • 227,796
  • 193
  • 515
  • 708
4
votes
1 answer

Isolating Zend_Session in PHPUnit tests

I am testing authentification functionality of my site. Zend_Auth is using as authorization engine. But auth status remains between tests and I need to write 'logout' in every tearDown. Now everything is all right. But the problem is following. As…
darja
  • 4,985
  • 9
  • 33
  • 47
1
2 3
9 10