Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how do you hide session ids


jsyguy23

Recommended Posts

hi i want to hide my session ids in codeing like this

 

if($page<$num_pages){$main.="<a href=\"online.php?ses=$ses&page=".($page+1)."\">Next»</a>";}
if($num_pages>2){echo pagejump($ses,"online");}
$main.="</p>";

$chat=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM chat_online"));
$L1="<a href=\"./inbox/inbox.php?ses=$ses\">Inbox</a>";
$L2="<a href=\"./forums/forums.php?&ses=$ses\">Forums</a>";
$L3="<a href=\"online.php?ses=$ses&change=yes\">Change Mood</a>";
$L4="<a href=\"chat1.php?where=chat&ses=$ses\">ChatRooms($chat[0])</a>";
$L5="<a href=\"main.php?ses=$ses\">
<img src=\"./$phpthumbs?src=../images/home.gif\" alt=\"\"/>Main Menu</a>";
xhtml($ses,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
webfoot();
exit();

Link to comment
Share on other sites

Where's your code from?

 

Just set force cookie use to true.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

it was a lava script but ive recoded it not sure how to do that lol

 

session_destroy();

 

session_unset();

session_start();

$_SESSION['ses']=session_id();

$_SESSION['ses'];

Options +Indexes

<IfModule mod_php4.c>

php_value session.use_only_cookies 1

php_value session.use_trans_sid 0

</IfModule>

 

php_flag session.use_trans_sid off

 

<?php

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

session_cache_limiter('none');

session_start(); ?>

 

<IfModule mod_php4.c>

php_value session.use_trans_sid 0

</IfModule>

 

php_value session.use_trans_sid 0

 

<script LANGUAGE="php">

session_cache_limiter('none');

session_start();

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

include "vsadmin/db_conn_open.php";

include "vsadmin/inc/metainfo.php";

</script>

 

this is a few ways i been told but none of them are working for me

Link to comment
Share on other sites

But what's wrong with seting force cookie use to true.

 

Is that too easy?

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...