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
0
votes
1 answer

zend session not working in class

I am using zend session, it workssetting up on the index page and if i use jquery's and check any session data. how ever within my class the session is empty? index.php $usersession = new Zend_Session_Namespace(); $usersession->surveyType =…
shorif2000
  • 2,582
  • 12
  • 65
  • 137
0
votes
1 answer

How to manage Zend session save handler using Zend?

I want to save zend session in memcache rather than files bases session management. I have correctly added memcache.dll file in Windows 8 x64 system and check that memcache is working fine and have also installed memcached and windows services…
Smile
  • 2,770
  • 4
  • 35
  • 57
0
votes
0 answers

can't get Container's value in Zend2

Actually I am storing on value in the container in index action then i am fetching that value in same action but i am not able to fetch that value in another action of that same controller as well as in another controller...am I missing…
Bhavik Joshi
  • 2,557
  • 6
  • 24
  • 48
0
votes
1 answer

Zend Framework 2: Session SaveHandler - save IP Address

I am using a custom Session\SaveHandler with the following DbTableGatewayOptions: $gwOpts = new DbTableGatewayOptions(); $gwOpts->setDataColumn('data'); $gwOpts->setIdColumn('id'); …
Alex
  • 12,205
  • 7
  • 42
  • 52
0
votes
1 answer

How to fix Zend session incorrect data ('css')

I have coded a simple admin module with ability to paginate records and sort them by some column. And when I sort and then call some other action on the records it should redirect the user back to index page with the same sort parameters as there…
vian
  • 811
  • 2
  • 12
  • 27
0
votes
1 answer

change language with session in zend framework 2

I want make possible for user change the language of the webside. In the Module.php I wrote this: public function onBootstrap(MvcEvent $e) { $e->getApplication()->getServiceManager('translator'); $eventManager =…
Peach
  • 19
  • 7
0
votes
3 answers

Zend/Session with ZfcUser

I'm using ZfcUser in my app and I need to control the timeout parameter. As it's not part of the configuration I would like to set my own Zend/Session object (with the remember_me_seconds param) to ZfcUser on bootstrap but I don't know how. By…
Guilhem Soulas
  • 1,975
  • 2
  • 18
  • 30
0
votes
2 answers

Zend Session: How set with variable name

How do I set the index of Zend Session with a variable name? For instance, is there a way of doing this? $model = new Zend_Session_Namespace('models'); $model::set($index, $value); I want the index ($model->index) to be a variable. Is this…
0
votes
1 answer

Zend session not working properly

I'm trying to work with Zend Sessions and after failing for a while, I tried basic counter example: $defaultData = new Zend_Session_Namespace('language'); if(isset($defaultData->counter)) { $defaultData->counter = 1; } else…
Dawiss
  • 65
  • 1
  • 11
0
votes
1 answer

how to store an object inside session in zend framewrok 2?

i am wondering if i can store a object inside session using zend frameworks 2 when i retrieve the object it needs to be an object and not an array example object: object(Zend\Stdlib\Parameters)[144] public 'name' => string 'test test' (length=9) …
Patrioticcow
  • 26,422
  • 75
  • 217
  • 337
0
votes
1 answer

Zend Session not working on my friend's computer

My friend and I are working on a project together. I recently added some Zend_Sessions to our project. NOw when he downloads the latest version of the code, the platform does not run for him any more. He deleted the entire forlder, and committed…
Kousha
  • 32,871
  • 51
  • 172
  • 296
0
votes
2 answers

DbTableGateway is not writing my session information to database table

I'm trying to use DbTableGateway to store my session information in a MySQL database--but my "sessions" table is remaining empty. It never contains any rows. Here's my code (more or less copy/pasted from here): $dbAdapter = new…
Josh
  • 7,232
  • 8
  • 48
  • 75
0
votes
1 answer

zend session getting reset when user toggles between pages

I am learning Zend Framework and having issues with Zend_Session_Namespace. Here is the scenario: Homepage(user clicks on login-Index Controller) login page(user auth is done->Login Controller) On Successful login: Create a new…
0
votes
0 answers

Dealing with Zend Auth Data when using zend modules

I am working on zend module based structure for my project. As Zend_Auth class' default session storage is Zend_Auth. I changed according to module being called. Say for admin I use auth namespace Admin_Auth and for default module i use namespace…
0
votes
2 answers

New session id after being redirected with Zend Framework 1

I'm having a hard tackling a problem with a Zend Framework 1 application. It's a custom webshop application where from the checkout page the client is being redirected to a payment gateway provider. So it looks like this: When the client chooses a…
Ruben
  • 5,043
  • 2
  • 25
  • 49