> -----Original Message----- > From: Ryan A [mailto:[EMAIL PROTECTED] > Sent: 31 July 2003 00:34 > > > have around 20 sessions setup and want to delete one of them... > eg: > I have the following sessions:
Can I just make a little correction to your terminology, as every time I read your questions about "sessions" I experience a temporary disorientation until I adjust myself to how you're using the word? > one > two > three > four > five > etc These are "session variables", not "sessions". A "session" is -- ummm, well, roughly -- the period of time a user spends browsing the site between the very first session_start() and the point where the session is destroyed (explicitly by session_destroy() or by the session garbage collector deleting an expired session). The entire set of data stored in the $_SESSION[] would typically be called "session data" or "the session array". > > which is better? I am starting my sessions with this kind of > statement: > $_SESSION['blah'] = $_GET['blah']; That's registering a session variable. Sessions are started with the initial session_start() call. > Also any idea how many sessions I can have "on" at one time? > or is there no > limit? I couldnt find anything on that in the manual. The number of session variables you can register in your session will be determined by the storage capacity of the session mechanism you are using. If it's the default "files" that will be the maximum size of a file on your server's file system. Given this overall restraint, you would (if you could ever manage to register that many session variables!) be able to store far more session variables containing simple values (such as integers) than ones containing complex data (such as arrays or long strings). Short answer -- you'll probably never have to worry about hitting that limit! Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php