Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-18-2008, 09:56 AM
Junior Member
 
Join Date: Jun 2008
Posts: 1
Default Transport SessionID via URL

Hi there,

I have a problem with transporting the sessionID via URL if cookies are disabled.

php.ini setting
Code:
session.use_trans_sid = 1
I also added [QSA] to my .htaccess file.

I want to transport 2 simple variables from an actioncontroller to an other.

In my boostrap file I start sessions like this:
PHP Code:
Zend_Session::start(); 
This is my route:
PHP Code:
$route1 = new Zend_Controller_Router_Route(
    
'p/:action/*',
    array(
        
'controller' => 'index',
        
'action'     => 'index',
        
'module'    => $module
    
)
); 
In the controller:
PHP Code:
$myNamespace = new Zend_Session_Namespace('myNamespace');
$myNamespace->session_data "helloworld";
$this->_redirect("/p/e"); 
When redirecting the session is not added to the url, and I cant
access to the session_data in the other controller, IF COOKIES ARE
DISABLED.

If cookies are enabled everything is good.

I also tried this:
PHP Code:
$this->_redirect("/p/e?PHPSESSID=".Zend_Session::getId()); 
The session was added but I cant read the session data.

Does anyone have some tipps or a solution for me?

Thank you and have a nice day!

danzzz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:35 AM.