Cookies Instead Of Sid

Started on the old forum in March 2008 · view the original in the archive · old links redirect here

27 replies · 1,392 views · started 18 years ago · 1 min read

TL;DR · summary of 27 replies
  • -wizard suggested using PHP sessions instead of $_COOKIE for session management.
  • -The thread concluded that most older browsers do not support cookies, which could be an issue for the site's mobile users.
  • -Wizard recommended passing the session ID through URLs as a fallback solution if cookies are unreliable.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

4 participants
mcKeny Developer · 130 posts #1

External image (may be gone) UM was planning on using $_COOKIE to store the session id i try it after login in successfully i set the cookie then check if its set if not user get the message your not login are session expire it works perfect...also think the site will be more secure cause user got to sign out in order to see the login page ...what yall think External image (may be gone) someone said its stupid cause most browser dont support cookie whats your opinion External image (may be gone)??

R.M.C

PHP Adovocate B)

mcKeny Developer · 130 posts #3

the session id mate..mike mi know yu mad on php weh you think?

R.M.C

PHP Adovocate B)

wizard Senior · 493 posts #4

the session id mate..mike mi know yu mad on php weh you think?

what u r using in ur script is not sessions its ur just using a md5 encrypted variable for authentication. as for cookies it will not work with some older phones so if ur site is primarily 4 them then its best u use continue using the md5 thing.

wizard Senior · 493 posts #6

1 other thing u should back up ur script. its silly when ppl complain that they lost their script online cuz d host went down r sumtn.

chatabox Senior · 361 posts #7

loads of phones won't store cookies. thats why every one passes with url....

// No cookies in WAP

ini_set('session.use_cookies', 0);

// session.use_trans_sid will break our XML as it appends URL parameters with & instead of &
// - since session.use_trans_sid cannot be disabled in a script, set url_rewriter.tags instead

ini_set('url_rewriter.tags', '');
wizard Senior · 493 posts #8

loads of phones won't store cookies. thats why every one passes with url....

// No cookies in WAP

ini_set('session.use_cookies', 0);

// session.use_trans_sid will break our XML as it appends URL parameters with & instead of &
// - since session.use_trans_sid cannot be disabled in a script, set url_rewriter.tags instead

ini_set('url_rewriter.tags', '');

just pass session id in url

mcKeny Developer · 130 posts #9

i am a graphic designer i use to work in a computer store so i got access to pc etc i got fired cause am on the net every sec External image (may be gone) SO i got to use my mobile write the script and i cant download zip file neither does the opera support upload External image (may be gone)

R.M.C

PHP Adovocate B)

mcKeny Developer · 130 posts #11

aite mate the last time mi download a script i use a ftp site select all the files and download it in a zip file dont remember the site though,...whats the process of getting a pay pal i really need a domain name

R.M.C

PHP Adovocate B)

Guest #13

lol download mobilerar or zipman to extract ur scripts, then simple add a personal uploader to ur site,modify it to add the pages to a specific dir/location u want the uploaded pages to, thats how i used to do it quit easy

ori Lead · 512 posts #14

there heaps zip apps 4 s60/symbian phones and probaly same 4 smartfones anything under s60 may b difficult lol

mcKeny Developer · 130 posts #15

cool whats the url to download that app and am using a sony w810i java phone...and i got a next prob is there a specific addtype in the htaccess to enable html,xhtml am re coding my script in html but it keep saying server internal error missing confirmination my current add type is AddType text/vnd/wap.wml AddType application/x-httpd-php .php4 .php .wml

R.M.C

PHP Adovocate B)

chatabox Senior · 361 posts #16

just pass session id in url

Yeah i do, but tou should do other stuff for security, you would see if i showed the full script, thats why all your sites are easy to hack, there missing many things, just read about sesions on php.net and read a few tutorials it will explain all the the propwr way using url encode and other functions...

PS: use yellowftp to upload if you got a symbian phone....

wizard Senior · 493 posts #17

Yeah i do, but tou should do other stuff for security, you would see if i showed the full script, thats why all your sites are easy to hack, there missing many things, just read about sesions on php.net and read a few tutorials it will explain all the the propwr way using url encode and other functions...

PS: use yellowftp to upload if you got a symbian phone....

lol, my sites rnt east to hack, for 1 reason. i dont have any sites, but if i was running 1 know how to keep it secure from hackers.

chatabox Senior · 361 posts #18

lol, my sites rnt east to hack, for 1 reason. i dont have any sites, but if i was running 1 know how to keep it secure from hackers.

I was speaking in general about the ppl using lavalair etc.. Anyway i have to disagree, most wap scripts are very insecure.

Guest #19

use google search 4 it, use mobilerar or jzipman most of them got error but u bound to find 1 thats good

wizard Senior · 493 posts #20

I was speaking in general about the ppl using lavalair etc.. Anyway i have to disagree, most wap scripts are very insecure.

i dnt do wap scripts atleast not alone, what i do is create multiplatform scripts. here is a demo i just did http://pulsespace.com, its just a blank page but it shows wml, mobile xhtml and html to d appropriate browsers like if u enter with a old phone it will show u wml, if u enter with a new xhtml phone it will show u xhtml mobile n if u enter with any web browsers it shows u html for web browsers

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close