Jump to:

23361 Posts in 18124 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Can I use silverstripe session variables in a non ss php page?

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 339 Views
  • Hemant
    Avatar
    Community Member
    2 Posts

    Can I use silverstripe session variables in a non ss php page? Link to this post

    I need to use the session variables set in silverstripe in some php pages to get user details for the member who is logged in. Is there any way to do it?

    Thanks!

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Can I use silverstripe session variables in a non ss php page? Link to this post

    If you're using the same domain sharing cookies is possible.

    Sessions are a bit harder. You would need to pass in the session ID from one site to another and re-start the session using the given ID. It's potentially a problem with security.

    What are you trying to achieve with sharing of variables between different scripts?

  • Hemant
    Avatar
    Community Member
    2 Posts

    Re: Can I use silverstripe session variables in a non ss php page? Link to this post

    I was building an extension for a silverstripe system on php. Anyways got the thing working moments after posting this query the same domain allows sharing session variables as well (which for some reason I thought wouldn't work and hence didn't try)

    Thanks anyways!

    339 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.