Yii Framework Forum: Reading And Checking Any Http Session - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Reading And Checking Any Http Session Rate Topic: -----

#1 User is offline   Adeons 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 12-May 11

Posted 01 December 2012 - 05:19 PM

Hello

I would like to have reading and/or existence checking functions for any http session in Yii (not only the session of the current request), since i cant find similar functionality with the PHP session functions.

Something which could look like this:

// returns true if the given session ID exists and is active
Yii::app()->session->isSessionActive('some-session-id');

// returns the $_SESSION array of the given session ID if it exists and is active, or null otherwise
Yii::app()->session->getSessionData('some-session-id');


Mainly because CHttpSession can be changed with any other implementation, so it could give the correct way of doing these operations.

Sorry for my bad english
Thanks
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users