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
chatabox Senior · 361 posts #21

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

As i said above im speaking in general about most sites/scripts that are posted here. not directly about yours. And yes i know how to do the multi platform thing.

mcKeny Developer · 130 posts #22

hello? External image (may be gone) my prob regarding the addtype please.... . hmmm was thinking why blaze doesn't use session_start() instead of the sid thing in his script..

R.M.C

PHP Adovocate B)

wizard Senior · 493 posts #23

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

u do not need to enable html, r any xhtml on d host ur using. just go ahead n code ur script in html r xhtml n it will work

hello? my prob regarding the addtype please.... . hmmm was thinking why blaze doesn't use session_start() instead of the sid thing in his script..

dunno, think u should ask him

mcKeny Developer · 130 posts #24

eer here is an example of what i try <?php

header("Cache-Control: no-cache, must- revalidate");

header("Pragma: no-cache");

header('Content-type: application/vnd.wap.xhtml+xml');

echo "<?xml version=\"1.0\"?>";

echo "<!DOCTYPE html PUBLIC \"- //WAPFORUM//DTD XHTML Mobile 1.0//EN\" \" [";" target="_blank">http://www.wapforum.org/DTD/xhtml-mobile10...uot;>";](http://www.wapforum.org/DTD/xhtml-mobile10.dtd)

?>

<html xmlns="http://www.w3.org/1999/xhtml"> <?php include("connect.php"); include("data.php"); echo "<head>"; echo "<title>Jamvibes!!!</title>"; echo "</head>"; echo "<body>"; echo " "; echo "test"; echo " "; echo "</body>"; echo "</html>"; ?>

and i get the error server internal error missing confirmination please contact your host External image (may be gone)

R.M.C

PHP Adovocate B)

wizard Senior · 493 posts #26

if u try using a template engine i think it would be easier instead of goin thru files with both design n display to change just 1 or the other

mcKeny Developer · 130 posts #27

as default what you mean? and am using operamini 2.00 i use it cause it got multiple page it shows 2040 text per page in a file you can click option to go to next but if you got too many page my phone will shut off eg page 1-30 External image (may be gone)

R.M.C

PHP Adovocate B)

wizard Senior · 493 posts #28

as default what you mean? and am using operamini 2.00 i use it cause it got multiple page it shows 2040 text per page in a file you can click option to go to next but if you got too many page my phone will shut off eg page 1-30 External image (may be gone)

i mean make it blank. i use a pc n i still use templates :|. its not about how much lines u can c its about making it easier

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