# Flash login - redirecting issues

**URL:** <https://forum.kirupa.com/t/flash-login-redirecting-issues/296264>\
**Category:** Uncategorized\
**Created:** [September 11, 2009, 9:09pm UTC](https://forum.kirupa.com/t/flash-login-redirecting-issues/296264 "2009-09-11T21:09:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shoalzolo](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@shoalzolo](https://forum.kirupa.com/u/shoalzolo)\
**Post date:** [September 11, 2009, 9:09pm UTC](https://forum.kirupa.com/t/flash-login-redirecting-issues/296264/1 "2009-09-11T21:09:54Z")

</div>

So I have created a login on my flash website and so far it has worked perfectly. However, I have since updated it to function as a multi-user login so that when each client logs in they see their own personal information.

I know my PHP works, as I have scripted it myself and used it many different times. My problem is when I try to log in via my flash web site my browser (Firefox) keeps displaying “Transferring data…” at the bottom of the browser for over 3 minutes and then finally gives up.

**FLASH WEBSITE:**  
Username: Input text field, Var:userName  
Password: Input text field, Var:passWord  
Login button ActionScript:  
on (release, keyPress “\<Enter\>”) {  
if (userName != “” && passWord != “”) {  
loadVariablesNum(“dataProcess.php”, 0, “POST”);  
}  
}

**header() from dataProcess.php**:  
_**dataProcess script published at: [scripts.tropicalpcsolutions.com](http://scripts.tropicalpcsolutions.com). Awesome scripts!**_  
source files can be found here for reference:  
[http://scripts.tropicalpcsolutions.com/html/php-script/secure-login-php-script.html](http://scripts.tropicalpcsolutions.com/html/php-script/secure-login-php-script.html)

function success($loginName)  
{  
$filename = “user.log”;  
$log=fopen($filename, “w+”);  
fputs($log, $loginName);  
fclose($log);  
Header(“Location: “.$\_POST[‘user’].”.php”);  
}  
Basically, whenever someone logs in they are directed to their own page.

Not sure what else to include, if anyone thinks I need to show more just let me know and I will see what I can do.

If anyone can offer any help or ideas that would be great!

Cheers,  
-Shoal
