Skip to main content

Questions tagged [session]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
15 votes
7 answers
10k views

Restore SSH session

I have connected to my server via SSH and created a process, but suddenly my internet connection got disconnected. I know that the process is going on, but how can restore previous session to see the ...
Arash Mousavi's user avatar
13 votes
1 answer
33k views

Connecting to specific session using remote desktop

We have a Windows 2008 R2 server with no active directory, single credentials for all. It is possible to disconnect from a session without logging off. Is there a way to connect directly to a ...
Ofiris's user avatar
  • 243
9 votes
3 answers
18k views

ASP.Net State Service missing from Services

The ASP.net State Service appears to have mysteriously disappeared from our web server's Services list after changing the .Net version in an IIS app pool to v4 and then changing it back to v3.5 again. ...
TimS's user avatar
  • 358
9 votes
3 answers
12k views

apache2 - SSLSessionCache running but not working

I run a debian squeeze standard Apache installation (2.2) and make use of SSLClientCertificates to authorize users. This works fine so far. But we noticed a slow down of some parallel requests and ...
Janning's user avatar
  • 1,601
8 votes
3 answers
25k views

No space left on device error, but df reports as more space available

My PHP sessions on my Debian webserver using Apache2 with mod_php seem to be failing randomly, saying that there’s no space to write them: sudo tail -60 /var/log/apache2/error.log [Fri Jan 30 15:55:...
Kzqai's user avatar
  • 1,288
8 votes
4 answers
7k views

How to limit number of sessions?

I need a way to track and limit web sessions to a web app. A "session" is loosely defined as the single user browsing the pages of the said web app. I think it can be translated to: a session is ...
the-wabbit's user avatar
  • 41.1k
7 votes
2 answers
12k views

Run a script after I unlock my Windows session?

How do I run a script each time I unlock my Windows 7 session? So, if I lock my session and then log in again, I want the script to run. Do login scripts configured in the Group Policy do this or ...
Tamara Wijsman's user avatar
7 votes
1 answer
12k views

Memcache+PHP session tuning: How does memcache expire keys?

I've done some research into this and have not found a definitive answer. We have a web app that is using the PHP+Memcache session handler. I have several questions, all interrelated, but ultimately ...
JDS's user avatar
  • 2,638
7 votes
1 answer
3k views

Having problems with maintaining sessions across multiple Amazon EC2 instances

One of my sites is hosted via Amazon EC2 service. The problem starts happening when the site faces a heavy load which in turn spawns a new EC2 instance via AutoScaling. This is good but the issue is ...
Chantz's user avatar
  • 215
6 votes
1 answer
1k views

UDP Sessions and Ephemeral Port Selection

I would like to ask community to help me finding answers to the following questions: According to RFC 6056 an operating system should pseudo-randomly select ephemeral ports for each transport layer ...
Yury's user avatar
  • 119
6 votes
3 answers
10k views

PHP on Windows - ps_files_cleanup_dir error

I am occasionally getting the following error when loading a PHP page: PHP Notice: session_start(): ps_files_cleanup_dir: opendir(C:\Windows\TEMP) failed: No error (0) in C:\server\default.php on ...
Mooseman's user avatar
  • 163
6 votes
4 answers
7k views

Is Tomcat Shared Session / Cluster between two machine possible?

I have a setup of several Tomcat servers distributed between a few servers, all running the same thing. Apache is on top of Apache and a loadbalancer in front of the Apache servers. I want to cluster ...
Snorri's user avatar
  • 111
6 votes
3 answers
11k views

How to reset a tcp connection immediately on both ends on a certain condition using linux netfilter/iptables?

Dear Serverfault community, I have the following problem: I need to reset (disconnect) tcp connections on both network sides immediately if a certain string is encountered in the packet data. I don't ...
Jens Moser's user avatar
5 votes
2 answers
5k views

Is installing multiple redis instances on the server a good idea?

As title says. I'm considering creating a state service farm using redis, and I'd like to handle multiple "regions" - that way, if a service goes down only a single region should be affected. This may ...
Maciek's user avatar
  • 155
5 votes
1 answer
23k views

How to configure a Remoteapp server to increase stability

RemoteApp is Instable According to my experience, Remote Desktop connections (especially RemoteApp connections) suffer from several instablities, which manifest themselves especially when using ...
Lorenz Meyer's user avatar
5 votes
4 answers
3k views

Windows 2008 R2 Not Printing From Scheduled Task

Problem Since the end of support is coming on July 14th for Windows servers 2003 we are moving all of our scheduled tasks to a Windows 2008 R2 server. We use a Microsoft(MS) Access 2003(mdb) ...
Elias's user avatar
  • 103
5 votes
1 answer
7k views

Session variables not persistent in PHP5/Apache2/Ubuntu12

I have a website that uses session variables (in PHP) to know if the visitor is entering the website or not. If he's new, then I redirect him to the detected language. But if he's not new, you let him ...
Diego's user avatar
  • 145
5 votes
1 answer
10k views

Getting just the "active" remote desktop sessions

In windows I can get the remote desktop sessions on a particular server using: qwinsta /server:SERVER_NAME But this gives me sessions of all different states(e.g.: Active, Disc, ... ). Does any ...
hhsaffar's user avatar
  • 153
4 votes
4 answers
30k views

Websphere JSESSIONID cookie overwrite between two apps on the same domain (different ports / context roots)

Background I have two webshpere apps app1 on http://example.com:9080/app1 app2 on http://example.com:9081/app2 (installed on two separate profiles, and both the ports and context roots are ...
Eran Medan's user avatar
4 votes
1 answer
7k views

nginx - ssl session resumption

I have installed nginx on multiple servers (our load balancers). When i check my SSL installation with https://www.ssllabs.com/ I get A+ results for each server but the first server has always ...
Janning's user avatar
  • 1,601
4 votes
2 answers
8k views

Logoff Script on Remote Desktop Services

I have a Remote Desktop services running on Server 2012 R2. My timeout settings have been set to end a session 60 minute after disconnection. This is good for all the users except one: That user's ...
user2629636's user avatar
4 votes
2 answers
60k views

Fixing "Could not chdir to home directory" on a homeless user

Basically I created a new sudoer without a home directory (adduser --no-create-home), but now, everytime I login with it I get prompted with a "Could not chdir to home directory: No such file or ...
Luiz Berti's user avatar
4 votes
1 answer
3k views

Store session files in different directories in PHP

I have several sites hosted on the same server, in different directories (e.g: server.com/site_one, server.com/site_two) and I want to store the session files for each site in a different directory. ...
Alex's user avatar
  • 217
4 votes
1 answer
3k views

Editing the Session Collection disk size in Server 2012 R2

I created a Remote Desktop Services Session Collection a few weeks ago using Windows Server 2012 R2 Standard. I am now realizing I overdid the Maximum Size in the user profile disks section, and ...
dthree's user avatar
  • 367
4 votes
1 answer
18k views

pam_unix generates a lot of open/close sessions for my domain user

I setup a new VPS with ubuntu 18.04, including virtualmin/usermin. In auth.log I see a lot of su[12936]: Successful su for domain by root su[12936]: + ??? root:domain systemd-logind[148]: New ...
Amos's user avatar
  • 277
4 votes
1 answer
2k views

Closing shared folder sessions remotely

Introduction: I have a script which copies some data from the local server (Server A) to another server (Server B) through an UNC path, the share in the Server B was created for an external hard disk ...
Black Binary Co.'s user avatar
4 votes
0 answers
5k views

ngnix php curl old SSL session ID is stale, removing

I am making a php curl request from nginx server to apache server It shows old SSL session ID is stale, removing As per the link I have changed the SSLSessionCacheTimeout in bitnami apache server but ...
DroidDev's user avatar
  • 141
3 votes
1 answer
14k views

How does a running application behave when a remote desktop session "ends"? [closed]

I'd like to know how an application running in the user session is affected by the user's RDP session being disconnected, aborted, shutdown, or whatever actions could be invoked on a RDP session. ...
MicSim's user avatar
  • 156
3 votes
2 answers
3k views

postfix deliveries per connection

hope you can assist me in this case. I am administrating an Postfix server which is used for newsletters. Recently one of the major recipient domains changed their policies to only accept one email ...
Steffen Nielsen's user avatar
3 votes
1 answer
7k views

Remotely determine how long a user has been idle

How do I determine how long it's been since a user with files opened on my server has been actively using their workstation in a Windows Active Directory environment (XP, 7, 8 clients and Server 2008, ...
I say Reinstate Monica's user avatar
3 votes
3 answers
8k views

What happens to DHCP sessions on client devices when the DHCP server breaks down and comes online after an interval?

Scenario: I use DHCP server to authenticate and provide specific services to my device. Everything is working well, my client device has a valid IP address 192.168.0.2 and a QoS service assigned by ...
fortnite_v4's user avatar
3 votes
1 answer
14k views

Changing session.save_path in php.ini not working

Fedora 25 + PHP 7 + Apache 2.4.23 Hello, after I change session.save_path in php.ini and restart apache, I can successfully verify that it's modified with: $ php -i | grep session.save_path However,...
synkro's user avatar
  • 233
3 votes
1 answer
11k views

OpenVPN force maximum session length

Server: OpenVPN 2.3.8 on Ubuntu 14.04 How do I force a session to disconnect after a set time? I want VPN sessions to last no longer than 24 hours. Currently, clients appear to be able to stay ...
JDS's user avatar
  • 2,638
3 votes
1 answer
5k views

apache mod_proxy, page reload and sessions

I use the apache "mod_proxy" to forward all requests to the glassfish server. The relevant apache config is: # proxy to glassfish app ProxyRequests Off ProxyPreserveHost On <Proxy *> ...
stewert's user avatar
  • 61
3 votes
3 answers
3k views

Load balancing: Nginx, Varnish and HTTP sessions

I have to setup a load balancing system. At the moment I have two machines running Nginx 0.8.52, PHP-FPM (on unix socket) and an application based on PHP Symfony 1.4.11. On a third machine, I have to ...
Michele Pangrazzi's user avatar
3 votes
1 answer
2k views

How do you set the session key size in OpenSSH?

In version 1 of the SSH protocol, it was possible to set the ephemeral session key size with the ServerKeyBits setting in sshd_config. Is there a way to do this for version 2 of the ssh protocol? In ...
Kurt Fitzner's user avatar
3 votes
2 answers
8k views

Apache httpd mod_rewrite with Tomcat resulting in lost JSESSIONID

I'm working on a Java web application, for which I recently implemented an authentication module that relies on the JSESSIONID cookie to identify users. I was testing on a local tomcat from eclipse ...
sldk's user avatar
  • 151
3 votes
1 answer
400 views

Run program on "Reconnect Session"

I just implemented BackInfo on our servers, deployed via GPO. Everything is working as intended while users and administrators log on and off. Problems arise when a user disconnects and reconnects an ...
Simon L's user avatar
  • 113
3 votes
1 answer
4k views

"phpsessionclean" systemd service won't run on Ubuntu 18.04 (after update from Ubuntu 14.04)

After we updated all of our legacy Ubuntu 14 servers to Ubuntu 18, the PHP session files stopped getting cleaned up. I am not sure this is caused by the upgrade itself, but all of our other servers ...
Vojta Hejda's user avatar
3 votes
2 answers
2k views

php session.save.path that is not from my ini file

I have set up a custom php.ini for a dev site (the production site will eventually be on the same server) - it sets the session.save path to a directory specific to the site. You can see the result ...
Richard Grevers's user avatar
3 votes
1 answer
2k views

Tomcat session replication issue

TL;DR - The node name in the sessionId is not being updated to the current node name in the backup when the primary goes down. Tomcat version - apache-tomcat-7.0.50 I have two nodes (2 instances of ...
bub's user avatar
  • 151
3 votes
1 answer
2k views

Ending Session when user disconnects from RDP Server Windows 2008

I'd like to start by saying that I am by no means a server administrator of any kind. Basically I know the most about computers so now I get to figure this out. Our company has a RDP server that 5 ...
That Guy's user avatar
3 votes
0 answers
1k views

Cannot delete php/sessions folder

I could really use some help. I have a Ubuntu 14.04.6 account with DigitalOcean and am encountering some errors related to lack of space. When I ssh into the account and do a tab-completion at the ...
TSGM's user avatar
  • 131
3 votes
0 answers
2k views

RD Connection via RDGW to Session host is not connecting

I'm building a new RDS solution with a Gateway/Connection Broker and a pair of session host servers etc. This isn't the first time I've done this and I've not hit this issue before; I'm hoping its ...
John's user avatar
  • 541
3 votes
1 answer
32k views

RDS 2016 session limits

We have a single RDS (W2K16) which hosts all roles (Broker, Gateway, Session host). On the collection settings, we specified all session limits as "never". Still all users are logged off 6 hours after ...
Mickeybyte's user avatar
3 votes
0 answers
4k views

Set "rdp-tcp#0 Administrator" permanently to Session 1

Steps to reproduce: - Login to a Windows 2008 R2 via RDP - Open a "Command Prompt" - Type: qwinsta - Get: SESSIONNAME USERNAME ID STATE TYPE DEVICE services ...
Dirk Schiller's user avatar
3 votes
2 answers
4k views

.htaccess Lost SESSION after header redirect using mod_rewrite [L, QSA] with started session

PHP version 5.4.41 Apache version 2.2.15 Linux version 2.6.32 CentOS 6.6 I have some code that won't redirect properly. There is a lot of code and configuration, so I'm going to try and keep it as ...
Kevin Nabity's user avatar
3 votes
2 answers
9k views

HAProxy max session limit

I have an Amazon OpsWorks stack running HAProxy (balance = source) and several node.js instances running socket.io. It seems HAProxy determines the max session limit for a given instance based on the ...
J Young's user avatar
  • 131
3 votes
2 answers
5k views

Is it really possible to use PHP sessions for authentication with nginx fastcgi cache?

I have recently switched an opencart instance from Apache+mod_php to nginx+fastcgi+php-fpm. I have been trying to leverage caching for most pages through fastcgi-cache. Unfortunately, many users ...
Bretticus's user avatar
  • 175
2 votes
4 answers
4k views

rm -rf cannot delete session files

1. list the files in session dir $ /var/lib/php/sessions$ sudo ls -la total 20 drwx-wx-wt 2 root root 12288 May 20 14:26 . drwxr-xr-x 4 root root 4096 Feb 26 21:15 .. -rw------- 1 ...
Samuel Lui's user avatar

1
2 3 4 5 6