Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jul 2012
    Posts
    64

    how to create a session

    how to create a session

  2. #2
    Senior Member
    Join Date
    Mar 2014
    Posts
    137
    Create the "sessions" table:
    CREATE TABLE `sessions` (
    `id` CHAR(128) NOT NULL,
    `set_time` CHAR(10) NOT NULL,
    `data` text NOT NULL,
    `session_key` CHAR(128) NOT NULL,
    PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

    We use the CHAR datatype for fields we know the length of, as the fields "id" and "session_key" will always be 128 characters long. Using CHAR here saves on processing power.

  3. #3
    Junior Member
    Join Date
    Apr 2014
    Location
    India
    Posts
    27
    Nice post. .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.