Hello
I need people to be able to complete long text blocks in my cms before
their session times out. From the php documentation I gather that ini
directive session.gc_maxl ifetime would be the one to adjust here.
I am on shared hosting, so I can't change the php_ini settings directly.
If I use ini_set, should I do that on every page in my cms, or would it
suffice to do it on the login page? Or could I do it in a .htaccess file
(which my host permits)?
thanks!
..han 6 16431
On Sat, 12 Nov 2005 12:07:27 +0100, somaboy mx <no****@fakemai l.fk>
wrote: Hello
I need people to be able to complete long text blocks in my cms before their session times out. From the php documentation I gather that ini directive session.gc_maxl ifetime would be the one to adjust here.
I am on shared hosting, so I can't change the php_ini settings directly. If I use ini_set, should I do that on every page in my cms, or would it suffice to do it on the login page? Or could I do it in a .htaccess file (which my host permits)?
Not sure what a cms is but, If I understand you correctly you are
asking people to type in a lot of text on-line?
This is not good practice generally since there may be some other
break in connection and they will lose their work.
Could you not encourage them to use a text editor or WP and then cut &
paste their text in (just as I have done with this message).
Sorry if I have missed the point of this and got it wrong.
--
John
John wrote: Could you not encourage them to use a text editor or WP and then cut & paste their text in (just as I have done with this message).
I do. But the reality is that sometimes people get up and go make some
coffee, or go to the john or whatever while they're in the middle of
something. By the time they get back they try to submit the form, and
all of their changes are lost. That's the kind of situation I'd like to
deal with :)
..soma
On Sat, 12 Nov 2005 12:07:27 +0100, somaboy mx <no****@fakemai l.fk> wrote: I need people to be able to complete long text blocks in my cms before their session times out. From the php documentation I gather that ini directive session.gc_maxl ifetime would be the one to adjust here.
I am on shared hosting, so I can't change the php_ini settings directly. If I use ini_set, should I do that on every page in my cms, or would it suffice to do it on the login page? Or could I do it in a .htaccess file (which my host permits)?
It's got to be done throughout the site, setting it on the login page isn't
enough. .htaccess is a convenient place to do it. ini_set would work if you
have a central inclue file that's included from all the other pages.
Just increasing the session timeouts in .htaccess on shared hosting may not
work as expected - you probably need to set a separate session directory as
well.
See: http://groups.google.co.uk/group/com...eaa0acb60fb33c
--
Andy Hassall :: an**@andyh.co.u k :: http://www.andyh.co.uk http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
On Sat, 12 Nov 2005 12:44:22 +0100, somaboy mx <no****@fakemai l.fk>
wrote: John wrote:
Could you not encourage them to use a text editor or WP and then cut & paste their text in (just as I have done with this message).
I do. But the reality is that sometimes people get up and go make some coffee, or go to the john or whatever while they're in the middle of something. By the time they get back they try to submit the form, and all of their changes are lost. That's the kind of situation I'd like to deal with :)
That's precisely why you need to minimize the time spent completing
the form in online with a good design for the page.
Must say I don't ever remember going to the toilet half way through a
filling a form.
--
John
On 2005-11-12 07:36:59 -0500, Andy Hassall <an**@andyh.co. uk> said: On Sat, 12 Nov 2005 12:07:27 +0100, somaboy mx <no****@fakemai l.fk> wrote:
I need people to be able to complete long text blocks in my cms before their session times out. From the php documentation I gather that ini directive session.gc_maxl ifetime would be the one to adjust here.
Forgive me If I am missing something but do PHP sessions not live for
the life of the browser?
In all of my sessions work with PHP (which has been limited) the
session identifier cookie is set automatically by PHP with an expiry
time of the life of the browser... so until someone quits IE or Firefox
or whatever... their cookie is alive... therefore when they try to
access the session data again, as long as they didn't quit their
browser before going to the john.... then their form would work as
expected when they return.
Perhas we are talking about different concepts?
(This is more of a question than a helpful response, I would like to
understand.)
-Ci
On Sun, 13 Nov 2005 19:49:41 GMT, Ciphex .? <ci****@mac.com > wrote: Forgive me If I am missing something but do PHP sessions not live for the life of the browser? In all of my sessions work with PHP (which has been limited) the session identifier cookie is set automatically by PHP with an expiry time of the life of the browser... so until someone quits IE or Firefox or whatever... their cookie is alive... therefore when they try to access the session data again, as long as they didn't quit their browser before going to the john.... then their form would work as expected when they return.
The cookie may be a browser-session cookie (by default) with no timeout, but
PHP has its own timeout after which the session data is subject to deletion.
(There's nothing to stop someone opening a browser, starting a session and
keeping that browser open for a year...)
Since there is no way for PHP to know when a user has closed their browser,
PHP must have a way of expiring the session data from the server.
Also, the session cookie doesn't have to be a browser-session cookie anyway,
it can be a normal cookie with a specific timeout.
--
Andy Hassall :: an**@andyh.co.u k :: http://www.andyh.co.uk http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: AmigaLemming |
last post by:
As I understand my admins installed a PHP server and now my plain HTML
pages also want to set a PHPSESSID cookie when loaded into a browser.
Can I suppress this, e.g. by creating a configuration file like
..htaccess somewhere in my public_html directory? Is it possible to
disable the setting of PHPSESSID cookies for plain HTML pages in
general and maybe for PHP pages that don't need to track any session
information?
|
by: yohomonkey |
last post by:
I want to setting the session end , but ican't waiting for
the session is timeout!
Who can help me?
|
by: Ric Pullen |
last post by:
Hi,
i've been playing around with the session time out setting in the webconfig.
Now i set it at 1 minute and waited in the global.asx in the session end
event but it does not fire.
What i'm trying to achieve is the following.
Forms authentification login : - Done
If the user leaves the application open and unused for more than 10 minutes.
|
by: Scott Walters |
last post by:
Hi,
I have an asp.net webapp that uses some javascript in a hidden frame on
the browser to poll the server every 30 seconds, using an http post.
I also want my sessions to timeout in the normal fashion. The way I'm
trying to get around this is by manually setting the timeout property
for the session.
I cache the starting session timeout value and inspect each url I get.
|
by: Ken Varn |
last post by:
IIS has a Session Timeout setting. How does this setting coincide with the
ASP.NET property Session.SessionTimeout value. If I change this value in
code, will it override the IIS Session Timeout setting?
--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
| |
by: Siegfried Heintze |
last post by:
I have edited my web.config file in an attempt to prolong the amount of time
my browser can site idle:
<sessionState mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data
source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="2000"
/>
This does not seem to help, however. I still get the following stack trace
when the web browser sits for more than 10 minutes (approx) with no
|
by: UJ |
last post by:
I have a page where the user can upload a video file. As you can guess, this
may take a while. Is there a way I can change the session timeout for just
this one page? I would also want to change the forms authentication to be a
large value for that page also.
TIA - Jeff.
|
by: laredotornado |
last post by:
Hi,
I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed
using Apache's apxs and the php library was installed to
/usr/local/php. However, when I set my "error_reporting" setting to be
"E_ALL", notices are still not getting reported. The perms on my file
are 664, with owner root and group root. The php.ini file is located
at /usr/local/lib/php/php.ini. Any ideas why the setting does not seem
to be having an effect? ...
|
by: sumittyagi |
last post by:
I am using websphere 5.1 and I want to set session timeout for my application.
Now I know two ways of setting it (declaratively and programmatically).
* declaratively in web.xml of the application in session-cofig element.
* programatically by session.setMaxInactiveInterval().
Now I wanted to know two things.
1. If there exists any other way of setting session time out as well.
2. If I do not set my session timeout then what is the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |