Dear
I would like to set session expire time to 3hrs,
Which one is best ?
ini_set("sessio n.cookie_lifeti me","10800"); or session_set_coo kie_params(3600 * 3);
Or can I use both?
Is it compulsary to place every page b4 where ever session_start() ;
And one more above said syntax is correct or not? because some people using "10800" and some '10800' others just 10800. how to set?...
Search Result
Collapse
27 results in 0.0043 seconds.
Keywords
Members
Tags
-
Php session cookie
I have this program created in PHP using MVC pattern.
I am using sessions for the program.
I am starting the session in bootstrap which is straight after the index.php
the session name is changed before starting session in bootstrap ... getting to the question after slight more info.
I wanted to know how to delete session cookie.
when someone logs in a session is created with... -
Session dont work (PHP)
Hi Bytes.com
Have this code, and i want it use session, but when i update after loggedin, it goes to login.php again :S
Anyone what can see the fail?
Because im danish then i just translate to english.
Brugernavn = Username
Kodeord = Password
Code:<font face="Arial" size="2px" color="black"> <?php include("forbinddb.php");
-
session variable is not updating with new one session variable
Hi
I have script where $_SESSION['ID'] is assigned while login or registeration when i echo it will have some value but when call other pages then $_SESSION['ID'] is changed to something else (or the assigned way back )
example while login "ssid":"70fa130 8537985b9ff46d5 65b89f480e",
even $_SESSION['ID'] is this
but
then call other file it has other $_SESSION['ID'] like ... -
assign many attribute to one function
Hi evryone....
i need you help in this coding....
i named this page search0.php.... .
this is my code....
Code:<?php include("dbconn.php"); $dateday = $_POST['dateday']; $datemonth = $_POST['datemonth']; $dateyear = $_POST['dateyear']; $sql= "SELECT * FROM staffactivity WHERE dateday = '$dateday' AND datemonth = '$datemonth' AND dateyear = '$dateyear'";
-
call two session in an isset
HI...i need help in this php project....this is my coding...
Code:<?php session_start(); if(isset($_SESSION ['username'])) { ?> <html> <body> Hi, <?php echo $_SESSION['username']['position']; ?> [<a href="logout.php">Logout</a>] <br><br> <?php echo "DAILY TASK LIST"; ?> <br><br>
-
persisting Response.write
Hi,
I put a Response.write statement in the Session_Onstart method of my Global.asa.
The problem is even though I have since removed the statement, when I run my program it still does the write as if the statement is still there.
I an just running on my local inetmgr.exe 5.1 on windows xp sp3 and classic asp 6.0.
Can some explain why this is so and how I can remedy it?
Thanks in advance....Last edited by Ezima Ugwu; Dec 6 '11, 01:37 PM. Reason: I have discovered that I was calling a method in a .inc which contained same write statement. Sorry my stupid mistake. -
Saving of html form to server rather than locally
I recently inherited some code that I need to adapt and I am just not a java or asp coder so need some assistance.
I have a web form created by converting an excel spreadsheet to html with several onClick events, specifically "Clear" (clears data), "Submit" (emails data) and "Save Draft" (saves draft lcoally). Customers input their data, the from works its magic and is then sent off per the clicks. User... -
after use web hosting, my website can not save session
At the time of trial we use localhost, everything runs fine. But at the moment after we uploaded the web on web hosting, there are problems on the whole use of the session state, where the problem causing the loss of user data that has been logged in the stored in the session.
For example, we login using a user with admin level. Session suddenly disappear for a while (in a matter of less than 5 minutes). Especially after do a query, like insert,... -
how to close session of the same application in all tabs
Hi,
In my web application, I use an exit button which runs session.abandon to close the session and then close the browser.
It does not work with multi-tabs in IE. If I open my application in two tabs, I click on the exit button in one tab which abandons the session and close the tab. But the application in another tab can still work.
Is there any way to close the session for this application in all the... -
Why are users able to see other user's data?
I am currently creating collaboartive learning website based on the social networking ideas.
I have a Java servlet that uses HttpSession to store data.
When one user, User-A, logs in and does something on the website, User-B logs in. When User-A navigates to another page, User-B's information is shown instead of User-A's.
My Java servlet:
Code:package control; import java.io.IOException;
-
session_destroy(); is not working
Hi,
I'm running PHP on Windows Server 2003, IIS 6.0
session_destroy (); is not working. Anyone know why? and how can I destroy the sessions?
Thanks in advance. -
PHP Pagination and POST/SESSION variables problem
I'am using Adam's pagination script from: http://www.developphp. com/view_lesson.php ?v=289 And I adjusted the code just a little, so it fitted my needs.
Now I bumb into a problem, and I can't figure it out, how to let the script doing its job right.
The adjusted pagination script pulls a list of links, from my database from a certain category.
The pagination script is called from a link on another page, so that other categories... -
PHP & session doesn't work like it should
Hello,
I have windows 2008 R2 and IIS 7.5 with PHP 5.2.4.
I've tried to upgrade to PHP 5.3.3 and the same problem.
I'm using WORDPRESS or phpmyadmin that need to use session.
I've enabled and gave the folder write permissions.
When I'm trying to use the session its created but its forgotten...
For example, i've created this page:
Code:<?php
-
Session won't work.
I want to create an admin session to display a div on my website with stats, unviewable for everyone except for me. So i wrote this script:
AdminSessionLog in.php
Code:<?php include 'header.php'; $ip = $_SERVER['REMOTE_ADDR']; $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); $pass = $_POST['pass']; $adminsetpass = "AdminPass"; if($ip