| Site Maintenance Program updates, securing your website, creating backups. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Surpass Fan
On a golden path...
Joined in Nov 2004
Lives in San Francisco
364 posts
Gave thanks: 0
Thanked 3 times
|
Sessions in Rails
This code needs to be run, either every hour or five hours or 12 hours or day, to clear out old Rails sessions.
Code:
find /tmp/ -name "ruby_sess*" -cmin +60 -exec rm \{} \;
Since we should probably assume that a lot of our users aren't going to know how to set a session expiration right when they start out, the admins might want to run a cron job which will clear out old sessions periodically. ls /tmp any time to see what I mean. Yeah, it's all from me, but still! =) |
|
|
|
|
|
#3 (permalink) |
|
Surpass Fan
On a golden path...
Joined in Nov 2004
Lives in San Francisco
364 posts
Gave thanks: 0
Thanked 3 times
|
Great! Honestly, I didn't really check the expiration time very hard. I kinda assumed it wasn't going on, so my bad. Thanks again for the great new plan.
|
|
|
|
|
|
#5 (permalink) |
|
System Administrator
On a golden path...
Joined in Jul 2004
356 posts
Gave thanks: 2
Thanked 73 times
|
You may put any requests into /home/$username/gemrequest. This file will be read when I run my update script every day and I will select Accept or Deny, If Isee it coming from you I shall accept
Just put them in the file seperate by newline |
|
|
|
|
|
#8 (permalink) | |
|
Surpass Fan
On a golden path...
Joined in Nov 2004
Lives in San Francisco
364 posts
Gave thanks: 0
Thanked 3 times
|
Quote:
|
|
|
|
|