This topic is locked
[SOLVED]

 session Id passing to external application link

9/9/2010 1:02:53 AM
PHPRunner General questions
C
coolumanga author

hi all
i have created a phprunner project ....... so now i have a link to external application.
Now its working fine but i have to passing the phprunner project session to that external link
plz help me to do this thing.
example
i have custom_list there i have created a link to display all the all the customers report that i manually created.
i need to pass the session of custom_list session to the custom created report link ....

how do i do that
Plzzzzzzzzzzz help meeeeeee

A
ann 9/9/2010

Hi,
proceed to the Visual Editor tab, switch to the HTML mode and add {$custom_link} to the desired place.

Then fill it in the Before display event on the Events tab.

Here is just a sample:

$xt->assign("custom_link","<a href=http://www.custom.com/".$_SESSION["SessionVariable"].">www.custom.com</a>";);



where SessionVariable is custom session variable.

E
electromotive 9/9/2010

Your custom PHP script can join the session.
You don't need to do an explicit session_start()
At the start just add: include("../include/dbcommon.php");

(fixed up to see your path)
Then you can access the session variables.

Look at the generated php as template.

C
coolumanga author 9/9/2010



Your custom PHP script can join the session.
You don't need to do an explicit session_start()
At the start just add: include("../include/dbcommon.php");

(fixed up to see your path)
Then you can access the session variables.

Look at the generated php as template.


Thankz for the Reply
if i write in the custom page
include("include/dbcommon.php");

include("include/Category_variables.php");

include("include/languages.php");
// check if logged in

if(!@$_SESSION["UserID"] || !CheckSecurity(@$SESSION["".$strTableName."_OwnerID"],"Add"))

{

$_SESSION["MyURL"]=$_SERVER["SCRIPT_NAME"]."?".$_SERVER["QUERY_STRING"];

header("Location: login.php?message=expired");

return;

}
Is this correct ...... ??
Plzz help me

C
coolumanga author 9/10/2010



Hi,
proceed to the Visual Editor tab, switch to the HTML mode and add {$custom_link} to the desired place.

Then fill it in the Before display event on the Events tab.

Here is just a sample:

$xt->assign("custom_link","<a href=http://www.custom.com/".$_SESSION["SessionVariable"].">www.custom.com</a>";);



where SessionVariable is custom session variable.


thankz ann ........... hmm i`m working on this

C
coolumanga author 9/15/2010

[quote name='coolumanga' date='10 September 2010 - 10:32 AM' timestamp='1284091365' post='52596']
In hear when i login i have created custom menu there and in there i have phprunner generated links and customly add links ......
for a example in the menu
Customer - Phprunner generated page will display

customer Report - customly written one also external link ( I want to pass the session id to this report )
plz help me to do this.