DaveC426913
Programmer
I'm changing my app from form posts to session variables, which I'm just learning about. All I want to do is have access to a few variables across several pages.
This is the technique I'm using:
<?php session_start(); ?>
...
$foo = $_SESSION['foo'];
...
$_SESSION['foo'] = $foo;
But now I find my directory filling up with sess files. Am I going to get a sess file for *every* user that goes to my site?? They'll quickly overtake my folder with junk. Are there any good techniques for managing these files? Seclude them in a subfolder? Delete them?
This is the technique I'm using:
<?php session_start(); ?>
...
$foo = $_SESSION['foo'];
...
$_SESSION['foo'] = $foo;
But now I find my directory filling up with sess files. Am I going to get a sess file for *every* user that goes to my site?? They'll quickly overtake my folder with junk. Are there any good techniques for managing these files? Seclude them in a subfolder? Delete them?