Actionscript :: Session Id Or Cookie In Flash?
Jul 25, 2010How can I distinguish different users with actionscript, or is that possible?
View 1 RepliesHow can I distinguish different users with actionscript, or is that possible?
View 1 RepliesHow can I retrieve a session cookie inside Flash ? ($_SESSION['member'])
(I am using Flash 8 and ActionScript 2.0)
How can I retrieve a session cookie inside Flash ?
($_SESSION['member'])
(I am using Flash 8 and ActionScript 2.0)
I have a variable (array) in my ActionScript 2 file, called webshop.Is this possible to store in a cookie (or PHP session) so if a user visit my shop and add items to the basket (the variable webshop) and leaves the page, but then returns later on it will create the variable with the users already stored items?I think it would be most intuitive if it only stores the variable for the browser session, so if you close the browser and open it again it will reset the variable. But if you just leave the page it should save it.
View 1 RepliesI need to save email-id in my login form through the cookies. if I use shared object I am able to save but my requirement is need to save in cookies. How can I save? I got sample code from net. Attaching that code `package com {
import flash.external.ExternalInterface;
/**
* The Cookie class provides a simple way to create or access
* cookies in the embedding HTML document of the application.
[Code].....
I have a question that I cant quite start.I have a web site that record some cookies: name, age, sex, etc.
I would like to know if it is possible to create a flash banner that display this information, like: hello [name], how are you doing today?
I was searching online and everything that I found needs something outside flash to work.
Is that a way to create a flash that can read cookie's values and show then?
Long time leecher, decided to join in and ask a question. I have a video auto play on a site i am working on [URL].. Issue is, it auto plays every time the page loads...
Is there a way for me to set a cookie that flash could look for and either choose a welcome back video or not auto play video?
EDIT: SharedObject is awesome. Ignore this i did it.
We have a flash video that was created for our project, we dont the source so we have to work around the compiled flash file. We are going to host the video on our domain and the video creates a sol cookie (flash cookie) file to store how far the user has proceeded though the video. So my plan is to access this cookie to see how far the user has progressed and then fire an event when they have finished the movie.
I have been googling for some help but haven't found to much. I have found out that its possible to do in javascript and I have found some .net sol file viewers but haven't seen any examples I can get my mind around.
I have watched the traffic that gets created with fiddler and every time the next button is clicked a new request is fired with the swt file that is being accessed. I would also be happy with tracking every time one of these swt files has been accessed as well.
I'm hoping to get pointed in the right direction here. The problem I'm having is trying to figure out how to read an HTML created cookie in Flash. I have a video player that should autoplay once in a 24hour period, the next day it should autoplay again for the end-user.This is what the script on the HTML page looks like that displays the Flash player and the cookie:[code]I did some searching and found this Have a HTML page play Flash movie only once (not when revisited...) but again this is just a Flash function which never allows for a restart in a certain time period.how do I read that var x(cookie) in Flash?
View 3 Repliesi have a flash application connected with a script on a remote server(X)different from the server hosting the website(Y)the application on server X needs to get some user information so i need to identify the user by what i have in the cookie
remote server X will get those informations from server Y is there any way i can get the user name or user id from the CAKEPHP cookie var?the authentication is the one found on cakephp website
[flash]----request---->[server X]----request---->[server Y]----response---->[server Y]...
I use an application which uses flash cookie to store some important information. This information is critical and should not be deleted. But I have observed that the flash cookie or the shared local object is getting deleted under the following situations. When the local history(including cookies) are deleted by the browser. When flash is upgraded in the system.
This is adversely affecting my application. Please let me know, if there is a way to forcefully retain the 'shared local object' by placing some kind of lock on it. It will be better if this can done programmatically.
I am trying to pass a cookie with multiple name/value pairs into flash and I would like to know if someone know how I can do this. I know that I need to pass the vars from the cookie to my Flash Params but I am not sure how I would do that, given that this is a multiple array cookie.
View 0 RepliesI'm working on a website based on flash. The first time you visit the site there will be asked to fill in your name (for example: George) and then you continue to the next 'page' in the flash. The next time you visit the site, i want that the site automaticly forwards to the last page, and there is a text 'hi, *name*' (hi, George)
View 1 RepliesI want to write a Flash application which need to access my browser(Internet Explorer)cookie. My program work well in all browser except Internet Explorer. This is part of my code:
Quote:
function test()
{
ExternalInterface.call("eval","alert(document.cook ie)");
}
How do you transfer a cookie from another website in flash? I am trying to figure it out and I keep running into brick wall. I am using cs1 and cs3.
View 1 RepliesI've got a page that has a flash banner on it with a small animation. In fact, I've got four versions of this banner, and I'd like to be able to load a different version each time someone visits the site. Can someone please help this rank amateur devise a script that will allow me to do this? It has four different .swf files, and I need to load them such that the same person doesn't see the same .swf file on consecutive visits. Normally, I'd do this with cookies, but I just don't see how to get it done with Flash CS5 and/or Actionscript 3.
View 3 RepliesI have a very simple php script that I'm using to check and set a cookie. I'm running this script from a Flash file, but it's not working properly. If I enter the direct URL to the php file in my browser, it works perfectly. However, if I access it through Flash it doesn't seem to recognise that the cookie has been set.
Here is my php code:
<?
$expiry = date("U", mktime(0, 0, 0, date("m"), date("d") + 1, date("y")));
[code]......
I want to first try to retrieve $_COOKIE[a],if it's not available then retrieve $_GET['a']
How to do this in actionscript?
Is it possible to read first party cookies from flash?It should be noted that we have complete access to javascript via the ExternalInterface class.So, now the question is - can we access first party cookie from javascript? Our javascript code will be loaded by a website which is not hosted by us. This makes the cookies created by that website - first party cookies. How can we access these "first" party cookies?
View 1 RepliesI want to create a flash swf file that will store a token in Local Shared Object. What do I need to do to read that token and look it up in the database on the back end? Is this possible at all?
here is a possible scenario:
User visits my web page A token is generated on the server and stored in the database Token is then saved in LSO User leaves the site (maybe shuts down his computer) and comes back later Token is read, located in the database and the user is recognized (lets say that token is a foreign key that links to other user data stored in the db)
I researched this for quite a while and all I find is that flash can use LSO to store read data for flash movie... Does this mean that the data can not be accessed by the server?
A couple questions about Macromedia Projector for flash 8 (this is going to be a windows .exe file or contained in a shell). I am creating a Flash intro outlining new features for software solution. The intro will launch and then will launch the full software. Client wants two buttons in the .exe. 1 to enable the user to "skip" the movie which will then launch the client's software. The other button will say "do not show this intro again". Kind of like when you open Flash for the first time and it shows the "tutorial and what's new" window. The in-house developer was saying something about the Windows registry, and outputting a "cookie-like" file when the user clicks "do not show this again" so that the file will not run when the software is executed again.
View 6 RepliesI need to read the contents from the browser's cookie.I tried to use FlashVars to pass the contents from html to flash.However, the contents of the cookie may change after the swf is loaded.So I need to setup a listener to read the cookie directly.
View 4 RepliesI 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]...
I am trying to create a login system where a user would be able to login inside of one flash game on say, [URL], and then that same login data would be preserved for all the games on [URL] and also the games on [URL] and [URL] I am new to shared objects in flash so if anybody knows of a way to do this in either php, as3, html, js (or a mixture of all) then that would be great.
(PS. I would prefer not to use a method that requires a javascript bridge to retrieve cookies as this is impossible for games that are played on game-portal sites where only a swf file is used)
My swf will potentially live on sites with embed codes that do not allow script access to the movie. I need to pull a cookie from response which is typically simple using javascript, but as the swf does not have access to script, javascript is not an option. Can I access cookies or the cookie header in the response? If that is not possible is there any access to the raw response, headers and all?
View 1 RepliesI need to store my array in a flash cookie file and call it in different swf files.
View 2 RepliesInside a flex app, I have a user login. The login calls a ColdFusion function as a remote object which authenticates the user and, if applicable, returns their id and access level. This works fine, but now I'm at the point where I want to also create a cookie for another ColdFusion template (called from fileReference.upload()) to be able to access later. I have tried several different methods for creating the cookie -- cfcookie, creating a cookie with JavaScript inside the ColdFusion function, and creating the cookie with JavaScript with an external interface once the coldfusion function returns to the flex result handler. All of these have been tried with a plethora of options regarding expiration, path, and domain tags.
[Code]...
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 RepliesI 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 RepliesI'm using Flash uploader(uploadify, swfupload) with CodeIgniter, want to get the session data. I have found out that the flash does not send the session data, so I have set $config['sess_match_useragent'] = FALSE;
Now for example i have set session value myname in session and I can get it on my backend PHP script using Internet Explorer.[code]...