freelanceprogrammers.org Forum Index » PHP

php Session in linux


View user's profile Post To page top
papiseckfr Posted: Fri Aug 05, 2005 2:54 pm


Joined: 05 Aug 2005

Posts: 2
php Session in linux
Hi all,

I’have a greate problem using php session in linux.

I want to share session variable between to application typo3 and dotproject .

What i have done is very simple

In somme classe in typo3,

session_start();

$_SESSION["tpuser"]=$GLOBALS["TSFE"]->fe_user->user[`username`];

$_SESSION["tppass"]=$GLOBALS["TSFE"]->fe_user->user[`password`];

$_SESSION["tpredirect"]="m=tasks";

And I create somme link whith <a href > </a> to dotproject index.php

In the first line of dotproject index.php, I try to get the variable i created
in typo3

session_start();

if (isset( $_SESSION["tpuser"])){

$vartypo3user = $_SESSION["tpuser"];

$vartypo3pass = $_SESSION["tppass"];

$vartypo3redirect= $_SESSION["tpredirect"];

}

But theye are empty.

Enven I name the session with session_name(“typo3”) and try with that nothing.

Notice that i dont have any virtual host and the to application are on the same
virtual directory.

What is curious in that is , it is working very well in windows OS with easyphp
1.8

Would you mind to help me please I’m losting all my hair.

Any suggestion is welcome



Alioune Seck
Ingénieur en Informatique
Tel: (+221) 516 97 77




---------------------------------
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez le ici !

[Non-text portions of this message have been removed]
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help