![]() |
![]() OCAU News - Wiki - QuickLinks - Pix - Sponsors |
|
|||||||
| Notices |
|
Sign up for a free OCAU account and this ad will go away! Search our forums with Google: |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Member
Join Date: Jun 2001
Location: Melbourne
Posts: 924
|
For some reason, I can't register a variable that has been taken from a cookie, as follows...
PHP Code:
|
|
|
|
| Join OCAU to remove this ad! |
|
|
#2 |
|
Member
Join Date: Jun 2001
Location: QLD
Posts: 159
|
It isnt working because session_register() is out of scope. You would have to define username and password as globals to use it inside the function.
But theres no need to use session_register(). Its simpler and safer to assign the superglobal directly $_SESSION["username"] = $ck[0].
__________________
suprise! |
|
|
|
|
|
#3 |
|
Member
Join Date: Jun 2001
Location: Melbourne
Posts: 924
|
That's what I've done to get it working in the end, but even if I just returned $ck above it and then tried to register stuff it'd crack the sads. Oh well, works now
.
|
|
|
|
![]() |
| Bookmarks |
|
Sign up for a free OCAU account and this ad will go away! |
| Thread Tools | |
|
|