23481 Posts in 18951 Topics by 2878 members
|Go to End|
6 February 2009 at 1:06am
I have developed an all PHP site frontend with much SQL
operations. One of the needs is to link from the PHP system
to the SS portion as the SS design is really great for handling the
I can not figure out how to send the session data to the SS system.
I am using this method from the frontend
$_SESSION['session_var'] = "Testing123";
<form action='sessionTest2.php' method='POST'>
I have the frontend linking well to the SS portion.
But I want to lock down the SS portion so the user has to come thru
the frontend. I figure I can lock it down if I pass the session info to the SS start page,
but how to accomplish this task?
Thanks so very much.
6 February 2009 at 3:29am
Sessions are handled by Session::get() and Session::set(), AFAIK.
If you're trying to keep your form secure, however, you want to use the permission class.
"You must be logged in to use this form."
6 February 2009 at 5:02am
thanks for the reply.
All well and good, except, I really need an example of how to do this.
Where does one place the code to accomplish the transfer of $_SESSION data?
Do you have a complete example I can study and test?
Once I see the mechanism, I will better understand the process.
14 May 2009 at 2:09pm
How'd you go with this Steve?
I'm trying to get my head around SS sessions myself. I believe to get your $_SESSION data, in the controller you can use
Session::start($_SESSION) and it should transfer everything to the Session object.
Is this what you did?
|Go to Top|