Jump to content

no session or cookie


Baabu

Recommended Posts

<?php

//require 'db.php';
include ("functions.php");
include ("session.php");
//header("Location:http://localhost/cart/index.php");
//exit();
//		echo $_POST["username"];
	//echo "<br>";
//	echo $_POST["upass"];
session_start();
if(AuthenticateUser($_POST["username"],$_POST["upass"]))
{

	session_register("username");
	$username=$_POST["username"];
	echo $_SESSION["username"];
	echo GetCartId();
	//echo session_id();	
	//$uname=$_POST["username"];		
	//$upass=$_POST["upass"];	
	//setcookie("cookie_passwd",$upass);
	//setcookie("cookie_user",$uname);
	//echo "cookieset";
?>


<script language="JavaScript">
<!--
	window.location.replace("list.php");
//-->
	</script>

the above code is working fine i m not concerned abt security issues just want to knw when i redirect the page with java script no session or cookie variable is set on next page i.e list.php any suggestions?? ::)

Link to comment
https://forums.phpfreaks.com/topic/93673-no-session-or-cookie/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.