ActionScript 2.0 :: Keep The Session Logged In
Mar 27, 2008
I have a website that was created with flash 8 AS 2.0 [URL] we want user to register to be able to view some of the pages like pictures and such. it all works fine but i don't know how to keep them logged in in the session. When they leave the page they they logged in to and try to go back to it it asked them to log in again. I don't want them to do that i want the action script to keep the session logged in.
View 1 Replies
Similar Posts:
Oct 23, 2011
I just started checking out using actionscript and facebook API documentation. I was wondering how I could display a facebook users name and profile picture in my SWF so when the user visits my site it shows their info (they will already be logged in)?
View 1 Replies
Jun 15, 2010
how to get the current logged in username from windows and put it into a var, so I can create a dynamic text box to display it.
View 13 Replies
Mar 22, 2010
I am trying to secure my Flex application within my Java web application. Currently my Java web application, handles logging and managing user accounts and the like. I was wondering if there is a way to essentially share that user credentials with the Flash movie in a secure mechanism? For instance, if you log in, we want you to be able to save items in the Flex application for that user, only if that user is logged in of course. I'm running Tomcat 5.5, Java 6 doing portlet development inside a Vignette Portal. All data communication is via Blaze DS. In our environment, we have data services and the portal handles logins, user management and the like. Currently we are simply passing down the username to the flash movie, which I don't feel is very secure.
View 2 Replies
Jun 27, 2011
getting the list of the users currently connected to a BlazeDS server? Is there any built-in mechanism of knowing this? or do I have to implement some kind of server side logic every time a user access my Flex application and store all logged in users details somewhere and retrieve them later?
View 1 Replies
Apr 24, 2007
I want to check if a user is logged using sendandload from flash to php. This is code I'm using
Code:
var obj:Object = new Object();
function getLoggedStatus() {
//Impelement XML SendAndLoad/////
varSender = new LoadVars();
varReceiver = new LoadVars();
[Code] .....
When I test the code
trace("returning "+this.islogged); which is inside the onload function traces after trace(logStatus.islogged); which is inside onRelease of the button. So logStatus is undefined. How can I eliminate this.
View 1 Replies
Nov 27, 2010
I want to make a game where a user logs in. Once the user logs in, they have access to a database (let's just say a database of weapons). They could choose a certain amount of "weapons" and every time they log in, they still have the same weapons, regardless of cookies, because the "weapons" are linked to their username. Then the users could use their weapons to battle other users. Also, the user's username keeps track of their wins and losses. I have newb to basic flash knowledge (I took an animations class); I could animate, make buttons, websites, etc. Does anyone have some insight that could point me in the right direction?
View 2 Replies
Oct 24, 2011
Here's the battle plan:
User logs into website.
User clicks the Play button and a new window opens with the flash game in it.
If the user is logged into website, have the flash game load. Otherwise ask him for credentials.
Is this type of interconnectivity possible? Can I give a flash object (.swf) something to use?
View 1 Replies
Mar 13, 2012
How are you able to grab the Window NT Logged User Name using Flex/Actionscript. I have worked with attaining these credentials in ASP.NET, but I am new to the realm of Flex and need some assistance
ASP.NET code looks as follows Getting the User Name : using three ways we can get the User Name using C#
[Code]...
View 1 Replies
Apr 8, 2009
I have implemented the login capability to my application using Flex(Blazeds)channelset login. But there is a strange problem, after about 2 minutes of inactivity if I try to perform any operation I see that my channelset has been been forcefully logged out Is there some configuration which I need to do in order to prevent this from happening. I tried adding this in my web.xml, so that the session persists but it didnt help my cause.
<session-config>
<session-timeout>10</session-timeout>
</session-config>
View 10 Replies
Mar 21, 2011
I have tried installing and unistalling the Adobe Flash Player several times to get it to work, but it is not helping. It won't work when I am logged into my facebook account.
View 1 Replies
Nov 19, 2011
[Sat Nov 19 13:17:04 2011] [error] [client 1.1.1.32] File does not exist: /var/www/vhosts/x.com/httpdocs/scores.asp [Sat Nov 19 13:17:54 2011] [error] [client 1.1.1.32] File does not exist: /var/www/vhosts/x.com/httpdocs/reqewrqwe.awwe
View 1 Replies
Mar 7, 2012
I need to have access to the logged in user throughout a flash application. Therefor I'm concidering making the 'user' variable global.
I usually try to avoid global variables, but it seems quite suitable in this case and I'm not the first to concider the active user as a global. I know that systems like drupal also uses a global variable for the logged in user.I want to know if stackoverflow thinks of this as bad practice or if there are better alternatives.
View 3 Replies
Dec 2, 2010
New here with emphasis on noob. I have started doodling with flash back in CS but increasingly been having a blast since I installed CS5. In all that time I have avoided Ascript like the plague. Now I find myself wanting to do things that require it. I have spent days searching the internet and this forum for a simple way to stop an swf from playing more than once per session in a format that I can understand. Everything seems to be old posts or if I find something I can't get it to work. Remember, you guys are waaay ahead of me on script. I vaguely understand the concept of sharedObject (as a result from my search) and cookies. I'm just having trouble with putting the whole thing together to make it work.
I would think this would be a great function for adobe to include in the code snippets window. I sure they have their reasons if its not. If it is however just tell me where it is and I'll go on avoiding actionScript
View 8 Replies
Jan 24, 2012
I have made a website and put inside it a flash game. For people to play the game they have to log into the website. Logging to the website will create a session. I want for the flash game to get the session id, so I have created a function that gets the session id. It works only in Internet Explorer and when I tried it in Chrome, it didn't retrieve the session id. I have written a php file that will be used by the as3 to get the session id, the php code is this:
[Code]...
View 2 Replies
Dec 23, 2009
I want to play a movie (simple fade in text on top of a photo background) in a banner on my home page one time when the user first displays the home page. After that I'd like to have the end result of the movie (last frame) remain static for the remainder of the user's session, regardless of which pages they refresh. The only way I can see to do this within the web site configuration is to embed the swf on a main page, then display the contents of all the other pages in an iframe on that page. However, I would prefer not to rewrite the entire site to use iframes.
I looked briefly at using a flash shared object and checking a variable in the swf onLoad event. But (I think) that requires the movie to be loaded to read the variable and hence the banner wouldn't show the text in the first frame. I could then jump to the last frame but it seems the banner would "flash" (sorry for the pun) from having no text at the start of the movie to displaying the text at the end every time a page is refreshed.
I'm not sure if I can do what I want without using Action Script or if I need to control the whole process within the html on the page containing the embedded swf.
View 3 Replies
May 31, 2010
I am trying to get variables from my php script to my swf. I have this php
Code:
<?php
if(isset($_POST['action']) && $_POST['action'] == 'submitform'){
$name = $_POST['name'];
$receiver = $_POST['receiver'];
} if($name=="" || $receiver=="") {
Which hopefully creates two session variables (not done sessions before). With this done, how can I load these variables in my as3?
View 4 Replies
Jun 23, 2009
I am getting the session generated in Flex Application in a hidden text field, but when i refresh the page it gets back me to login page...
How can i hold the session of the page until the browser is not closed...
I am getting the session value from PHP.
View 2 Replies
Nov 5, 2010
I am now using FancyUpload (flash upload) to allow user to upload files in a small project. I use Generic Handler to handler in server when user uploads his file, but I'm getting error:
Can't get session in Generic Handler (.ashx) when using Firefox or Chrome etc except IE
I read so many solution and finally found out that Flash has some bug that can't send cookie in Firefox or Chrome except IE. Maybe I can check the session in Flash before it's start to send the file to the server or check session in Generic Handler before save it, How to do it?
View 2 Replies
Dec 6, 2010
I'm developing a FLEX application which has a Java Server as back-end.
What I need:
-The FLEX app can only be used if the user it's logged;
-The FLEX app also needs to know which user it's logged, because it will shows especific content about him;
-I need to perform authentication on every webservice call;
However, the webpages are being developed using PHP, as well the login system.
After some digging, I've discovered that I can use the PHP session ID for authenticate every webservice calls, by using the php-java-bridge so both PHP and Java can share the same session.
My problem it's that I don't know how the FLEX app can get the current PHP session ID. I know that it's possible to pass it by flashvars, but I think it's not secure.
View 2 Replies
Apr 20, 2011
I encountered a weird error, I lose sessions when moving between pages.
I lose Sessions because i use Flash (swf) menu to navigate between pages.
So when i navigate to a page using the Flash menu, I lose the session.
It doesn't let me answer my own question so here is the answer:
Thx for answering, but the problam wasn't the flash..
I just found out that the session was opened on http://WebSite.com/ And the flash was redirecting to http://www.WebSite.com/
So the session losts between domains, and not between pages because of flash :) I just made all my site use the www domain .
View 3 Replies
May 13, 2009
How can I retrieve a session cookie inside Flash ? ($_SESSION['member'])
(I am using Flash 8 and ActionScript 2.0)
View 3 Replies
Jan 7, 2010
I have a Flex login page that uses HTTPService to communicate with server side php script. Once user's credential is verified, a session will be created and the login page will redirect to the main Flex page with that session info. I'm not sure how to implement the session logic.
View 2 Replies
Mar 18, 2010
In one web page we use a flash upload control but becouse a flash bug in the upload event the session is lost as its posted back with a new session. We have thought of using a table with ip and old session id or a query string with the old session id in order to reassign it in the uploaded event...Knowing the old session id how can i reassign it to the client? (In C#)
View 2 Replies
Jul 25, 2010
How can I distinguish different users with actionscript, or is that possible?
View 1 Replies
Aug 26, 2010
I have a SESSION that looks like this:
array(1) { [1]=> array(11) { ["aantal"]=> int(1) ["id"]=> string(2) "29" ["filmtitel"]=> string(16) "2_fast_2_furious" ["film_id"]=> string(1) "1" ["zaal_id"]=> string(1) "1" ["zaaltitel"]=> string(6) "zaal 1" ["tijdstip"]=> string(8) "17:30:00" ["stoeltjes"]=> array(3) { [0]=> string(2) "19" [1]=> string(2) "20" [2]=> string(2) "21" } ["dag"]=> string(8) "woensdag" ["verwijder"]=> int(1) ["vertoningId"]=> string(2) "31" } }
so there is an array and within that array is another array called "stoeltjes" with 3 items.
What i would like to know is how i can direct the content of "stoeltjes" to jquery so i can assign it to a flashvar and send it to as3.
View 1 Replies
Sep 21, 2010
I'm trying to display certain content per session, but the site has the same Flash embedded in the different sections of the site, so I can't set it on the site's Model or a Global Variable. I also can't use PHP or JS.
View 1 Replies
Nov 17, 2010
I have a Flex application which is served via a JSP page. In this page I output the session ID using HttpSession when the page is loaded: System.out.println("Session ID: " + session.getId()); In a very simple remote object hosted in BlazeDS (called from the flex application using an AMF Channel and standard RemoteObject functionality) I also output the session ID but this time using FlexSession (which as I understand is supposed to wrap around HttpSession).
System.out.println("FlexSession ID: " + FlexContext.getFlexSession().getId()); I would expect both IDs to be the same but this is not the case. The session IDs differ which is causing problems as there is data stored in the HttpSession which I need to be able to access from my remote objects within BlazeDS. I've exhausted the reading material on BlazeDS and FlexClient/FlexSession/FlexContext but can't see why the FlexSession is not being linked to the HttpSession.
View 3 Replies
Mar 29, 2011
I have a php website that uses sessions and if your not logged in you cannot acces a web page... I want the same for my Flash file, but want flash to see if there is a valid session on the php website and if there is play the flash, if not access denied..![code]...
View 2 Replies
Apr 4, 2011
var loader:URLLoader = new URLLoader();
var request:URLRequest = new URLRequest("http://domain.net/registerVideo.php");
var vars:URLVariables = new URLVariables();[code]....
The above client side code works for my machine(using the same web session),but not working for some other machines.
View 1 Replies