IT Community - Software Programming, Web Development and Technical Support

How to Access the session variables

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 ?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Flash Actionscript Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 08-14-2007, 06:44 AM
seesamjagan seesamjagan is offline
D-Web Programmer
 
Join Date: Aug 2007
Location: Chennai
Posts: 66
seesamjagan is on a distinguished road
Send a message via AIM to seesamjagan Send a message via Yahoo to seesamjagan
Question How to Access the session variables

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....
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-14-2007, 07:43 AM
a.deeban a.deeban is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 279
a.deeban is on a distinguished road
Default Setting and getting session variables with Flash Remoting MX

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....
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-16-2007, 01:11 AM
seesamjagan seesamjagan is offline
D-Web Programmer
 
Join Date: Aug 2007
Location: Chennai
Posts: 66
seesamjagan is on a distinguished road
Send a message via AIM to seesamjagan Send a message via Yahoo to seesamjagan
Thumbs up Re: How to Access the session variables

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....
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -7. The time now is 05:14 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0