I have a page outside of drupal that sets certain session variables. I want to be able to use this variable on the page.tpl.php but session data is reset. How can I do this?

Comments

Anonymous’s picture

They probably do not share the same session (cookie) name.
Both applications should be on the same domain!

pobster’s picture

As I can't see your code to comment on it, I can only suggest you to take a look at how modules store session data, for examples see;

http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/youtube_api...
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/fb/fb.modul...

Pobster

cbearhoney’s picture

Do you know any documentation on correct use of the drupal global $user? Session data is stored in the $user array. That could help me.