473,322 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

how to carry session_id

Hi All

I have looked all over the internet for this. What I basically want to do is implementing following link to the flash getURL(); function.

<a href="http://www.celebslair.com/index.php?action=logout;sesc=', $context['session_id'], '">

I can not make the .swf file get the ', $context['session_id'], ' from my PHP web site. I search all over the internet but there is not a simple solution for this. I am using Simple Machines Forum (SMF) in case if it helps.
Sep 18 '08 #1
1 2959
bnashenas1984
258 100+
Hi
Take a look at this script. It's what I use to send and recieve information between AS and PHP.

Expand|Select|Wrap|Line Numbers
  1.     var variables:URLVariables = new URLVariables();
  2.     variables.myvariable = "some value"; 
  3.     var request:URLRequest = new URLRequest("http://localhost/1.php");
  4.     request.method  = URLRequestMethod.POST;
  5.     request.data = variables; 
  6.     var loader:URLLoader = new URLLoader();
  7.     loader.addEventListener( Event.COMPLETE, loadCompleteHandler );
  8.     loader.load( request );
  9.  
  10. function loadCompleteHandler(event:Event):void {
  11.     var mydata:String = event.target.data.toString();
  12.     trace(mydata);
  13. }
  14.  
As you can see in the code (variables) is an array which contains variables you want to post to your php file.

When the information is sent and the result of your php file is recieved then (mydata) will contain the page result

BTW this code is for AS3

Hope this helps you
Sep 18 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Annie | last post by:
I have a script to check if a session exists, if not then I log the user's info from $_Server variables into a database (ip address, time, etc.). The problem is that the test: ...
1
by: Ken | last post by:
Which is the correct means of transferring session_id() attached to the URL address? or do all work? I am getting inconsistence results. $sessionid = session_id(); <a href="<?PHP echo...
2
by: jaf893 | last post by:
When I run this: <?PHP session_start(); echo session_id(); ?> It give me the right ouput but it also gives me a huge error message: Warning: session_start():
4
by: jaf893 | last post by:
I have the following script: <?PHP session_start(); echo session_id(); ?> But it gives a different session_ID() everytime the page is reloaded. Is there any way to keep the same...
0
by: Bryan Parkoff | last post by:
I break one U_WORD variable into two U_BYTE variables. I prefer to manipulate two U_BYTE variables instead of one U_WORD variable using Carry. Please look at my example using U_WORD variable...
16
by: archilleswaterland | last post by:
Hi, I am using a compiler that does not support long int (32 bits) so I am using 2 int's to do the work my problem int a; int b; int c;
2
by: XML newbie: Urgent pls help! | last post by:
If I get SessionID in 1 function how do I carry that SessionID(value of this SessionID) to another function or another form within the same project
3
by: CjB | last post by:
Hello, I am trying to do the following in one of my pages. session_id($_GET); session_start(); I am running php5, however as soon as I call session_start the script hangs and nothing happens....
2
Atli
by: Atli | last post by:
Hi. I've been using php 5.1.x for a while now and have a whole bunch of php code wirtten that works fine using that. I just updated to 5.2 and now none of the sessions I use work. I've found...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.