how to pass session id in javascript?

They have: 164 posts

Joined: Nov 2001

how to pass session id in javascript...

i've tried this, but it's not correct..

<?php
location
.href = \"http://www.abc.com/cart.php?uid=\"+  echo $uid \"&sid=\"+  echo $SID ;
?>

how to pass?? pls advice!!

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

Try:

<?php
location
.href = \"http://www.abc.com/cart.php?uid==$uid &sid==$SID \";
?>

They have: 164 posts

Joined: Nov 2001

thanks.. Smiling
it's working.... but have to take out the sid..

<?php
location
.href = \"http://localhost/kbj/shop_cart/user_cart.php?uid==$uid &=$SID \";
?>

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.