This topic is locked
[SOLVED]

 Regarding SESSION in external php

1/18/2016 7:02:06 AM
PHPRunner General questions
C
coldheart168 author

hi, recently im using phprunner 8.1 where i declare a session from a table inside phprunner,
now my question is can i bring the $_SESSION outside phprunner with my own custom.php file?
example:

table car with car_id.. so i assign the $_SESSION inside phprunner before display $_SESSION['car_id'] = $values['car_id'];
then i create 1 custom.php file outside the phprunner.. and i want to get the $_SESSION['car_id'] , but i cannot get the session in my custom php.
did phprunner change the session_name for security purpose?
i already try include the dbcommon.php and create my own config.php
i use phprunner 6.2 before and it manage to get the session, while in the phprunner 8.1 i cannot get the session in my custom php
thanks

Sergey Kornilov admin 1/18/2016

In your external file add the following before using any session variables:

include("include/dbcommon.php");
C
coldheart168 author 1/18/2016

hi, thanks for the reply, its working now. At first its not working , because i add another session_start(); in my config file, after i removed it, now its working.. thank you very much.