Search the Community
Showing results for tags 'php session'.
-
Hi. After looking how oauth 2.0(User Credentials) works, why i use this if i have to put the access_token variable in a cookie of a session i have to start, lol! Oauth User Credentials was supposed to do the job of session, but if i have to start a session for this it makes no sense... Forget about the 3rd part application, i am discussing the need of session creation in oauth 2.0. Also, to use Oauth, an https(secure) connection is hightly recommended. Oauth should be used for json responses only?
-
i want to use unique session values, set according to if condition. To use in same page. Like this <?php session_start(); ?> <form action="nn.php" method="post"> Username: <input type="text" name="lname" /><br><br> Password: <input type="password" name="password" /><br><br> <input type="submit" name="submit"/> </form> <?php if(isset($_POST['submit']) && $_POST['submit']) { echo "ok"; $_SESSION['a']="same"; } echo $_SESSION['a']; ?> But each time i load the page, i get the same session values even before i click submit button.. Any Help greatly appreciated.. Thanks in advances