When I have many calls to $_SESSION I do:
$s = $_SESSION;
$s['foo'] = 'bar';
echo $s['foo']; //bar
-Original Message-
From: Haluk Karamete [mailto:halukkaram...@gmail.com]
Sent: sexta-feira, 13 de Janeiro de 2012 01:17
To: php-general@lists.php.net
Subject: [PHP] advise on simplfying
-Mensagem original-
De: Jochem Maas [mailto:[EMAIL PROTECTED]
the normal way of doing session 'closing' is by way of 'garbage
collection'
- every now and then a script/process/function is run that 'closes' any
sessions which are (according to your criteria) inactive. php has stuff
-Mensagem original-
De: Jochem Maas
(...)
the normal way of doing session 'closing' is by way of 'garbage collection'
- every now and then a script/process/function is run that 'closes' any
sessions which are (according to your criteria) inactive. php has stuff
built it that will do this
-Mensagem original-
De: Jochem Maas
(...)
the normal way of doing session 'closing' is by way of 'garbage collection'
- every now and then a script/process/function is run that 'closes' any
sessions which are (according to your criteria) inactive. php has stuff
built it that will do this
Greetings
I'm having some trouble on a members online script.
I use a php script to track member login to avoid multiple logins on
different ips etc.
When a logged member closes the browser window I can't delete the table
entry because I will not have access to some sort of Session_OnEnd action
operations.
mail.pmpa [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Greetings
I'm having some trouble on a members online script.
I use a php script to track member login to avoid multiple logins on
different ips etc.
When a logged member closes the browser window I can't delete
De: Matt Monaco [mailto:[EMAIL PROTECTED]
Create an object with the functionality of your choosing, in the destructor
perform your cleanup operations.
The problem is I don't know when a member closes the browser window.
If I knew that i would automatically logout that member.
Thanks.
--
PHP
I used response.redirect in asp to avoid form re-submit, so I can have form
handling functions and other related functions on the same file.
new_customer_form.php :
form action=form_results.php
Customer fills form and hits submit button.
form_results.php :
function validate_form_data(){
-Mensagem original-
De: John Holmes
This is a workaround, really. Your code should be structured so that you
can decide if you need to perform a redirect before any output is sent
to the browser. If you're going to send them to another page, why would
you have any output anyhow? Using
Don't mean to start a discussion whatsoever, I love php, but one thing i
can't do in php is Response.Redirect .
Apart from that no complains so far :)
* Happy New Year *
Pedro Almeida.
-Mensagem original-
De: Tony Di Croce [mailto:[EMAIL PROTECTED]
I am fairly new to PHP, but I am
Can I do any session handling before calling header(Location: $url); ?
Pedro Almeida.
-Mensagem original-
De: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]
mail.pmpa wrote:
Don't mean to start a discussion whatsoever, I love php, but one thing i
can't do in php is Response.Redirect
Hi all and Merry Christmas!!
I am having some trouble reversing the order of an array.
I have this array:
$array[0]='Socket A';
$array[1]='Single processor';
$array[2]='Motherboards';
$array[3]='Hardware';
and I want to do a simple reverse of the content like this:
12 matches
Mail list logo