Reply to headers and session (2)

Your name:

Reply:


Posted by "Alessandro Rosa" on 06/06/05 19:17

I want to thank you all for previous helpings.

Really the first code was easy to be solved, but
this is how it shall work out. This is a program running
locally and the trouble is that session vars are stored
in local files. I must avoid to store a plain text password
therein, thus I need to crypt and save it into session.

When 2.php file just displays session data (it is test environemnt),
but the output is blank !

Suggest a different approach ?

Alessandro Rosa


<?php
session_start();

////////////////////////////////////////////////////////////
require_once('crypting.php');
require_once(dirname(__FILE__).'/../mysql_wrap/mysql_man.php');

$handle_db = connect_to_mysql_server();
$psw = $_POST['txtPassword'];
$psw = encrypt( $psw, get_crypt_key() );
sql_disconnect( $handle_db );

$_SESSION['session_user'] = $_POST['txtIdUtente'];
$_SESSION['session_password'] = $psw;
////////////////////////////////////////////////////////////

session_cache_limiter('private');

require_once("config.inc.php");
$PHPcmd = $GLOBALS['gestionale_path_name']."phpcode/login/2.php" ;

header( "Location: ".$PHPcmd );

?>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация