About session

leoyuen

Joined: 2007-10-14
Posts: 1
Posted: Sun, 2007-10-14 03:44

Hello there,
I have put created another .php in the gallery folder, and put something in the session by:

session_start();
$_SESSION['status'] = 'true';

I can retrieve this value back in another .php by, say:

session_start();
die ($_SESSION['status']);

However, I cannot retrieve that when i add the script in init.php.

Could any expert give some advice to me, how to get my custom session value in init.php?

Thank you very much!

Regards,
Leo Yuen

 
fauerskov
fauerskov's picture

Joined: 2007-11-02
Posts: 18
Posted: Thu, 2008-08-07 12:59

Hey Leo

I will like to know if you have solved you problem, I have tried the same result

Johannes Fauerskov

 
daitau

Joined: 2005-02-16
Posts: 2
Posted: Fri, 2008-08-08 02:15

Maybe you need to set your session ID first to what your gallery is using by session_id('GallerySession') for example?

 
fauerskov
fauerskov's picture

Joined: 2007-11-02
Posts: 18
Posted: Sun, 2008-08-10 17:01

Thanks I try that but no luck.
May be I should try to write what I want to do.

In my gallery, i have some menu setup in album.header, see www.vitapedersen.dk

And I want to acces gallery album in www.vitapedersen.dk from another website, Then I have to change my menu "Home" setting to retur to the right website
I think I could use the session param, I will use Session name to tell album.header with homepage is calling it.

Or is there a better way to do this

Best Regards

Johannes Fauerskov