Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-31-2003, 10:57 AM   PM User | #1
Exodious
Regular Coder

 
Join Date: Jul 2002
Posts: 165
Thanks: 0
Thanked 0 Times in 0 Posts
Exodious is an unknown quantity at this point
Sessions and PHP

Hi, me and some friends are about to embark on PHP as I did my dissertation on the speed differences (and other adv/disadv) of using different server-side technologies... PHP was almost the quickest along side JSP - we've decided on PHP

We want to be able to use sessions to cater for users who don't like/don't want cookies and so make it a trivial thing if users have cookies switched off.

So tell me and my "ignorance"... is it possible? small example would be appreciated.

Thx
Exodious is offline   Reply With Quote
Old 10-31-2003, 11:46 AM   PM User | #2
Nightfire
Senior Coder

 
Nightfire's Avatar
 
Join Date: Jun 2002
Posts: 4,266
Thanks: 6
Thanked 48 Times in 48 Posts
Nightfire is on a distinguished road
Yeah, sessions are possible

http://www.php.net/session

Quick example

PHP Code:
<?php
session_start
();
$_SESSION['username'] = "Username";
?>
__________________
Blue Panda
Website Design | 1 Pound Ads | 'ow much? | Coding Geeks
Nightfire is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:38 AM.


Advertisement
Log in to turn off these ads.