We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Making EE Session Data Available on Non-EE Web Pages -- Using Functions

Development and Programming

BWare's avatar
BWare
31 posts
17 years ago
BWare's avatar BWare

Hi:

It is my understanding that EE session data is generally unavailable to non-EE pages. However, I have a few applications, that are not a part of EE, where I would like to use certain session data in order to verify login status and user access credentials.

I was wondering – If I write a PHP function on an EE page that returns session data, will those functions run properly when that function is called from a non-EE page?

I did write some simple script that creates non-EE session variables from EE session variables. However, using this method would necessarily require that I re-engineer the default login pages in EE, which I am very reluctant to do.

Please advise. Thank you…

       
Jamie Poitra's avatar
Jamie Poitra
409 posts
17 years ago
Jamie Poitra's avatar Jamie Poitra

If the non EE pages are PHP based you should be able to write a PHP function that grabs session data that works independantly of EE.

But a function within an EE page (I’m assuming you mean a template) is going to run in EE before you can retrieve it.

So whatever it does programatically is going to happen before your non EE page gets ahold of it. From your post I think thats probably not what you are going for.

Jamie

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.