|
|
|
Hello,
Want to use sessions and keep your code locked down tight?
So in this in enviroment of keeping your information safe more and more people are
using sessions. Not a new thing but we all like to use them.
php.ini file has global vars turned off !
$HTTP_SESSION_VARS['ABC'] == "TEST";
With IE 5.X you could access session information like so echo $_SESSION['ABC']; and
your got TEST.
With IE 6 this works as well until you want to use the header.
$URL = $_SESSION["SCRIPT"];
$HTTP_SESSION_VARS['PAGE']=2;
header("Location: $URL");
then try and access the ABC var from this new section in your script.
for example you have the script to go to page 1 when session has page == 1
so the passed tests and now you want to send them to page 2.
IE 6 has now built a brand new session for you . Why ? Becasue it does not know your
session id. -->
PHPSESSID by default.
You can set your PHP.ini to show use cookies , auto start session and etc . Then in
IE 6 prompt your
for Cookies and even allow session cookies.
It allows sessions , one for every page? So to fix this is simple.
if(!$_COOKIE['PHPSESSID']):
$Cookie_ID = session_id();
setcookie("PHPSESSID", $Cookie_ID );
endif;
IE 6 will now prompt your to save the PHPSESSID cookie and all your session
information is easy to
access, in just one session file.
If you have any comments to questions please email apocryia@apocryia.com
|
|
| PhpView 0.1 - simple php viewer, using temporary files and frames.
Categories : PHP, PHP Options and Info, Debugging, HTML and PHP | | | Simple PHP program which calls other PHP program you can pass the
variables to other PHP program : by Raju Categories : PHP, PHP Options and Info, Regexps, Program Execution | | | dl -- load a PHP extension at runtime Categories : PHP, PHP Functions, PHP Options and Info | | | Pageinfo: Array containing page URI, page query string (parameters), request method (GET or POST) and the complete URI Categories : Variables, PHP Options and Info, Arrays, URLs, PHP | | | Step by Step installation
manual for PHP4.1.x on Windows 2000 based systems running IIS5
using CGI or ISAPI Categories : PHP, PHP Configuration, PHP Options and Info, Windows 2000 | | | Changing the default 30 seconds time limit of PHP scripts
Categories : PHP, PHP Options and Info | | | Sessions and -enable-trans-sid Categories : PHP, PHP Configuration, PHP Options and Info, Sessions | | | database,php,mysql,demo,example,php3,training,tutorial,codes,code Categories : Databases, MySQL, PHP, PHP Options and Info | | | Query2Report : Generating Html, Pdf and Csv Reports from SQL Query Categories : PHP, PHP, HTML, PDF, Excel | | | Make your PHP 4.1 (or higher) script compatible with PHP 4.0 (still used by some prviders) Categories : PHP, PHP Options and Info, Variables | | | PHP, simple, counter, bala Categories : HTML and PHP, PHP, PHP Options and Info | | | Security, Password lock out after three tries, authorization fails and is logged locked out of account till admin decides he will unlock it. Categories : Sessions, PHP, MySQL, PHP Options and Info | | | Retrieve text from table and email to your e-
address in pipe delimited format. Categories : PHP, MySQL | | | Accepts a database & hostname from a user and then HTTP username and password. Uses this to connect to a MySQL database. Produces a form based on the tables it finds there to allow the user to do SELECTs, INSERTs, and DELETEs. Categories : Databases, PHP, MySQL, Complete Programs | | | PHP Script to find url links in a page Categories : PHP, URLs, Regexps, Arrays | |
|
|
|