Close

Results 1 to 3 of 3
  1. #1
    DF VIP Member joey's Avatar
    Join Date
    Dec 2000
    Location
    london
    Posts
    186
    Thanks
    0
    Thanked:        0
    Karma Level
    315

    Help PHP coders : how do i use _session for variables?

    i want to keep a global variable of userid and password, using the _session. how do i do this?

    do i need to put sessionstart(); on top of each page?

    i have a page containing the username in variable $userName. how do i put it in the _session variable and am i able to access it from any other page on the web server?how would i retrieve it?

    sorry i been through loads of google sites and really doesn't answer much. an example of a php site using it would go down a treat. thanks for help.

    joe

  2. #2
    DF Probation Fusen's Avatar
    Join Date
    Mar 2004
    Location
    Kent Uni
    Posts
    3,672
    Thanks
    0
    Thanked:        0
    Karma Level
    565

    Default Re: PHP coders : how do i use _session for variables?

    [CENTER][FONT=Verdana][SIZE=2]Real pirates don't [I]STEAL[/I], they [/SIZE][/FONT][B][FONT=Verdana][SIZE=2]SHARE[/SIZE][/FONT]
    [/B][SIZE=1]Unless they are cunts, then they just leech...:happy:[/SIZE][/CENTER]

  3. #3
    DF VIP Member joey's Avatar
    Join Date
    Dec 2000
    Location
    london
    Posts
    186
    Thanks
    0
    Thanked:        0
    Karma Level
    315

    Default Re: PHP coders : how do i use _session for variables?

    doesn't matter, i was using wml with php realised that wml doesn't take cookies (doh) so im passing in the session id every time i go to a new page.

Similar Threads

  1. Phishing coders hook clueless crooks
    By unclex in forum System Security
    Replies: 1
    Last Post: 24th January 2008, 04:25 PM
  2. Passing multiple arrays through$_SESSION
    By mladen in forum Website Coding & Graphics
    Replies: 1
    Last Post: 23rd July 2004, 10:13 PM
  3. Multilingual site using Session Variables
    By tak5haka in forum Website Coding & Graphics
    Replies: 8
    Last Post: 28th April 2004, 09:27 PM
  4. to all coders -patching stb rom
    By plug1 in forum Digital & Cable TV
    Replies: 0
    Last Post: 22nd March 2003, 11:09 AM
  5. coders lunch box - web site dev
    By wadgey in forum Forum Bug & Error Reports
    Replies: 1
    Last Post: 30th August 2002, 05:10 AM

Social Networking Bookmarks

Posting Permissions

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