WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Submit Site
Forex Trading Online forex trading platform

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : PHP and IE 6. The new privacy option in IE 6 blocks an important cookie if you ever want a session.
Categories : PHP, PHP Options and Info Update Picture
keith larson
Date : Mar 09th 2002
Grade : 1 of 5 (graded 1 times)
Viewed : 3251
File : No file for this code example.
Images : No Images for this code example.
Search : More code by keith larson
Action : Grade This Code Example
Tools : My Examples List

  Submit your own code examples 
 

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