I have strange problem, that don't work on server:
session_start();
$quser = new Quser($_SESSION['$fb_user_id'], $pdo);
but this, seems to be OK:
session_start();
$x = $_SESSION['fb_user_id'];
$quser = new Quser($x, $pdo);
Of course, on localhost first option work fine. What is going on? Is there any restriction about that?
...
I need to use the same session in different subdomains.
First I put
php_value session.cookie_domain ".aaaa.com"
on .htaccess file and upload it to root path.
when I need to use sessions. I just call
session_start();
Sometimes it works but sometimes it doesn't.
I tested this and found that.
If I go to login page the first time,...
is it possible to manage sessions in web-services? if yes, how to manage session in it? is it similar to sessions we maintain in JSP or PHP? where does the info about the session will be stored, Client or Server?
...
Hi All,
In HTML do we have any variable which can be accessed in all pages similar to Sessions Variables in ASP.NET ?
I have a Querystring value in welcome.HTML and I want that value in complete.htm
User can't go directly to complete.htm from welcome.htm as there are other pages in between those pages.
Regards
msbyuva
...
The object I'm saving to the session is LocalizationContext, which is not serializable, and my Tomcat is 5.5.28, while the qa server is Tomcat 5.5.30. This is from the Tomcat docs (http://tomcat.apache.org/tomcat-5.5-doc/config/manager.html):
Whenever Catalina is shut down
normally and restarted, or when an
application reload is ...
I am working on a my site to allow users to take test so they can see how much they know of a particular subject. I am running into a little problem though. Once a user submits the test for grading, how do I prevent them from going back to the test page? I am on a Mac with Safari running and when I click the back button in my web browser...
This is a really simple question and despite multiple Google searches I cannot find the relevant one-line command. What do we enter in view.html.erb to show all the contents of the current session?
...
I'm running a recorded load test in JMeter. It appears that when the test is replayed, JMeter doesn't wait for the request to respond before proceeding onto the next request in sequence.
How do I address this?
...
Hello.
I have the following php code:
<?php session_start();
....
$result=$db->query($query);
$row=$result->fetch_assoc();
$_SESSION['id']=$row['id'];
header('Location: http://www.blabla.com/successLoginPage.php');
php code on: successLoginPage.php
<?php session_start();
echo $_SESSION['id'];
Here is problem. When i do all things, ...
Hi,
I'm building a web2.0 social networking app. I've got jquery and tomcat. I don't want to use tomcat sessions at all, but still want secure login. So I'm looking at openid, like used in stackoverflow. I want to build my own ui, so I assume I use the openid libraries.
My question is, assuming that a persistent cookie is left in t...
Hello again! I'm pretty new to PHP and JSON/XML, but we're forging ahead.
Our project entails logging in to a webservice (which we also built) from a handheld device and then accessing our website from that device. The point is to only allow users who have logged in on the handheld device to access the webpage.
Now, I guess this does...
I have a website which is behaving oddly in terms of creating new sessions. When I fire up the website, the Session_Start event fires as you would expect and the page loads fine. No error is encountered and everything runs fine. The next time you click a link to cause a new page to load, Session_Start fires again and a new session is ini...
Hi friends,
My Requirement: I want to send login details(email, password) to server, have to maintain session for valid username.
How to create & maintain a session using "NSURLConnection" of iphone SDK?
If you found any Tutorials/Code snippets on this issue,Please post the corresponding linke here.
Advance thanks for your help.
...
Hi,
At localhost (Debian Sid machine), PHP creates session files in /var/lib/php5. When I open sess_cd2ct9hud284gn01os13nk5mi7, for example, i can see something like that:
Qms6wztHQ9u79B7jjiihLX0cKc_fXgwo0NeVE34jFhdE__1JDOliUDteHQVXgMAjcGZgJ1EkBft0IUsqBdWrck7s0Vjghsm3vk681u_GV8KRK-ExrAEbvbgXfl51Z83tyh5h2JtRy0qLZmhqwLtUFykm1XbdBBxx5xJpNp...
I'm using php Sessions on my website and it seems like they are "disappearing" at random intervals. I don't know if they are timing out due to inactivity or if something is wrong with my code, but is there some way to control the sessions of when they expire?
Like can I put something in my code or change something in the php.ini file?
...
Hello.
I'm using mysql and php for registration on my web-site. Registration is ok. Mysql do queries immediately. But in login there strange things begin to happen. I insert a test in my php code to insert test row to database. First test code inserted immediately, but 2nd was inserted after series of refresh and relog actions only after...
In asp.net the major data stores are application, session and we also have the object cache.
I have used common sense hints/tips (e.g. never put users specific data in application, never put unmanaged resources in session etc. etc.) but to be honest I have never come across any recommendations and examples for when to use what in MSDN or...
I got a Servlet A which has a HTTPClient configured in it - declared a GetMethod which calls Servlet B (basically passing the url to the constructor of Servlet B".
In Servlet B I am setting some session vars and when the Servlet A gets back the control after the "execute" method but the session vars set in Servlet B are returning as nu...
hi
when an user is using the any web application which sets session ,
what will be the default time taken for the session to unset itself
note: we are not unsetting i am asking about the default time taken where the session gets unset by itself
...
Hello.
Here is my problem: i have login page. Php code registered $_SESSION['id'] variable and on the login page all seems to be ok, but on another pages $_SESSION['id'] is not set.
Used session_start(); at all pages.
Any ideas why?
...