This is a discussion on How to Access the session variables within the Flash Actionscript Programming forums, part of the Web Development category; Hi, is there any way to access the session variables through flash actionscript ?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi, is there any way to access the session variables through flash actionscript ?
__________________ SeeSamJagan- Sky is not the "LIMIT", Death is not the END, There is still something beyond.... |
| Sponsored Links |
| |||
| Hi, Using the Flash Remoting custom control properties, you can access and set the values of session variables. Session variables persist during a browser session from page to page. If you use Flash Remoting MX to return session variables, Flash movies embedded in different pages can access a common set of data. To enable state management in an ASP.NET application, you use the statemanagement tag in the config.web file, as the following example shows: <configuration> <sessionstate mode="inproc" cookieless="false" timeout="20"/> </configuration> To return a session variable, you use the Flash.Result property, as the following example shows: <%@ Page language="c#" debug="true" %> <%@ Register TagPrefix="Macromedia" Namespace="FlashGateway" Assembly="flashgateway" %> <Macromedia:Flash ID="Flash" Runat="Server" /> <% Flash.Result = session.myPreference; %> In the code, the value of the myPreference variable is assigned in the Flash.Result property, which is returned to Flash. To set a session variable using a variable passed from Flash Remoting MX, you use the Flash.Params property, as the following example shows: <%@ Page language="c#" debug="true" %> <%@ Register TagPrefix="Macromedia" Namespace="FlashGateway" Assembly="flashgateway" %> <Macromedia:Flash ID="Flash" Runat="Server" /> <% if (Flash.Params.Count > 0) { session.myPreference = Flash.Params[0].ToString(); } %> In the code, the parameter passed from Flash is assigned into the myPreference session variable. hope this will help you... thnx.... |
| |||
| Hi, Its Cool, Can you tell me a good book for flash remoting...
__________________ SeeSamJagan- Sky is not the "LIMIT", Death is not the END, There is still something beyond.... |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to use smarty variables in javascript? | sureshbabu | PHP Programming | 1 | 03-31-2008 02:48 AM |
| Is any possible to access the serverside variables and methods in client side(javascr | kingmaker | HTML, CSS and Javascript Coding Techniques | 1 | 01-22-2008 04:28 AM |
| Destroy session using session ID | Jeyaseelansarc | PHP Programming | 1 | 09-07-2007 07:42 AM |
| Shell variables | vigneshgets | Operating Systems | 1 | 07-19-2007 12:16 PM |
| Access e-mail using Outlook Web Access | gattuso | Server Management | 0 | 07-19-2007 07:20 AM |