I am working on a website and this is my first web project.
Scenario for Session
I have created a database for my project with security level little bit high. I want to manage session for each and every user who is logging in to my website. Session state can be used using Cookie as well as URL, only one at a time.
Now I went over wi...
Is there such an API?
...
Hi All,
I am new to CGI-Perl and sessions. I have a problem running the following code.
I have four files
1. Session.html or Session.pm
2. name.pl
3. hobbies.pl
4. job.pl
The Session.pm is place in /var/www/html folder and the rest of the files are placed in /var/www/cgi-bin/session folder.
I have a basic html file(Session.html) whic...
Hello,
I am trying to create a more secure PHP sessions login script. Unfortunately for this project I will be working with shared hosting. Would using PHP's session_save_path() function to change the path to something other than /tmp be a secure solution? Or do I need to save the sessions in the database?
Thanks!
...
I am needing to use sessions for my php page, so, on my index.php page, I add session_start(); right after the opening php tag.
But, this page has some includes, inside of which have other includes. So, deeper down, when I want to call a $_SESSION var, it is not working.
How can I access a session var even deep down into .inc files?
...
Hi!
I’m trying to set up a WcfService with the use of NetTcpBinding. I use Transfer mode Streamed since I will transfer large files. I need to use Session, and I have read that NetTcpBinding supports this, but when I turn it on like:
SessionMode=SessionMode.Required
I get the error:
System.InvalidOperationException: Contract requir...
I have implemented a systray icon in C++ using Xlib. I try to detect the enter/exit session events using the X Session Management Protocol, but latest GNOME versions are giving me trouble. Is there any reliable way to detect it without moving to DBUS? I am trying to avoid DBUS to be as legacy-compatible as possible.
...
I have a problem in retrieving a session variable in php.
While I am using the session variable in the drop down list, when I echo the values I can receive the value but when I use them in query there is no output.
Can you guide me?
...
Hi,
I received this message after long time of using the same application without programming changes:
Warning: Unknown(): write failed: No space left on device (28) in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on ...
Hi
I'm relatively new to CodeIgniter and am making my first CI project in which there are user-accounts, etc. In the past, I have always used PHP's $_SESSION variable to this end. However, CI seems to have its own session mechanism, which it claims is "better"
CI's session mechanism seems to store all the data in a cookie? Personally I...
We have an engaged (but friendly) discussion between coworkers about the life time of the SSL session underlying a https communication.
When I establish a https connection to a server using a normal browser the underlying ssl creates a session (including a shared secret) using asymmetric encryption, the rest of the communication is encr...
Hello,
i've implemented this custom PHP Session Class for storing sessions into a MySQL database:
class Session
{
private $_session;
public $maxTime;
private $database;
public function __construct(mysqli $database)
{
$this->database=$database;
$this->maxTime['access'] = time();
$this->maxTime[...
For example I have a web application using jQuery as a framework on the client side. Now most of the pages are functional by means of using AJAX and communicate to the server by means of using Generic Handlers (.ashx).
Now I have a problem that I am asking this to see what is the best solution for handling these request when my user ses...
Hello all,
I am making use of seralize and unseralize to set and get session variables from my Database.
A user is in a session and every time they click save. I do this:
$array = serialize($_SESSION);
//and save to DB field
When a user loads a session, I load the variables too to continue that session like so:
//get row from DB
$_...
I've got a site setup that, on page load, turns all user submitted strings into SafeString objects. For those unfamiliar with SafeString, it basically forces the user to echo out sanitized data preventing XSS and whatnot..
Anyways, there's a problem. My $_SESSION array is being filled with __PHP_Incomplete_Class Object. From what I've ...
Real simply question: can Castle ActiveRecord open a stateless session? If so, how would I do it? And if not, how would I go about opening a stateless session without it?
...
I'm quite new in JSF and I'm doing some basic things to get a feeling of how one should work with it. In my one of the projects I have a ManagedBean, SessionScoped like below
@ManagedBean(name="user")
@SessionScoped
public class User implements Serializable
// Having a couple of String properties (with setters and getters).
Now, in on...
I'm new to NHibernate, and have seen some issues when closing sessions prematurely. I've solved this temporarily by reusing sessions instead of opening a session pr transaction. However, I was under the impression that opening sessions each time you need them was the recommended approach for session lifetime management. No?
So; what is...
I'd appreciate any thoughts/insight any of you might have on this...
I have two domains running the same applications e.g. mysite.com and mysite.org and I have a requirement that when a user logs into mysite.com then he should also be logged into mysite.org. Obviously, I can't set the cookie on another domain but I want to come up with ...
PHPSESSID Session Cookie
how to know if PHPSESSID is cahnged in the current session icouldn't find way to detect if this variable change is changes
as i want to check if the user has modfy the PHPSESSID or delete it (as deleteing it cause to create new one .)
and i can't save the value of this in session as all session are cleared whe...