[PHP] Session Expiration?

2003-01-09 Thread Matias Silva
I have gone through the past posts and can't find an answer to my problem

I'm using a URL based session management schema, and I was wondering how to
set
the session duration time.  I know there is the session.gc_probability and
session.gc_maxlifetime but
that's only for garbage collection.  Just for testing I set the probability
to 100 and the maxlifetime to 60
just to see if my session would automatically expire, as my luck would have
it didn't.  I use session_start()
in my test scripts so that should run with a 100% probability any garbage
clean up of any sessions
that are 1 minute old.

I have the session.use_cookies set to 0 and, the session.cookie_lifetime
only applies to cookies.  So I don't
know why my sessions are not expiring.  Does anybody have any Idea?  Should
I just be manually checking
for the duration of the session(?) and then delete it if it has expired?

Best,
Matt


Matt Silva

-
Empower Software Technologies
[EMAIL PROTECTED]
PH 909.672.6257
FX 909.672.6258



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: mkdir and directory permissions

2002-10-25 Thread Matias Silva
Cool! the umask() is what I have to set prior to mkdir() for this to work.
Thanks Jason & Marek

-Matias

"Matias Silva" <[EMAIL PROTECTED]> wrote in message
news:20021024225108.24906.qmail@;pb1.pair.com...
> Hi-ya all, here's a quickie...
>
> In my script I create a directory (mysql.backup.timestamp/) within a
> directory called backup/.
> I use  the function  mkdir("mysql.backup.timestamp", "0777");  and it
shows
> the permissions
> as after the function executes:
>
> drx--t   2 nobodydaemon1024 Oct 24 15:16
> mysql.backup.October-24-2002-1516
>
> Where's the permissions (drx--t   2 nobody   daemon) coming from?  Is
it
> the php.ini, apache conf or
> the operating system?
>
> I would like to set the owner to "root" and the group to "nc".  How can
this
> be achieved
> by the php script?  Or do I have set this up in the other environments (OS
> or Apache)?
>
> Cheers!
> -Matias
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Session Trouble

2002-10-24 Thread Matias Silva
why don't you use the session_register("voted") function.  Then if you want
to check it
you can use the session_is_registered("voted) .

-Matias

"Stephen" <[EMAIL PROTECTED]> wrote in message
news:000a01c27ba1$d8871e00$0200a8c0@;melchior...
I'm trying to register a session for a poll by first opening the session
(session_start()), then registering it like this:

$_SESSION['voted'] = "yes";

Problem is, when I check to see if the session is there:

if(isset($_SESSION['voted']))

I have it load up a page containing the poll results:

   

But it doesn't display it. It displays the default (which is the voting
part). Any ideas why?

Thanks,
Stephen Craton
http://www.melchior.us
http://php.melchior.us



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: processing form checkboxes

2002-10-24 Thread Matias Silva
you need brackets, so when php initializes the variables, it knows to make
the variable state an array.
name=state[]

-Matias

"James Taylor" <[EMAIL PROTECTED]> wrote in message
news:DOEJIAGJHJHPBFMLOGOFKEJNCDAA.jtx@;hatesville.com...
> Heya folks, not sure if this is more of a php question or an html
question,
> though I'm right now leaning towards a 50% php, 50% html, so I think this
is
> on topic still.
>
> I have a form filled with checkboxes, each representing one of the 50
> states.  A user can check as many states as they want, then post the
data -
> The checkbox form would look *something* like:
>
>   Alabama
>   Alaska
>   Arizona
>
> Instead of assigning a unique name to each checkbox, I know there's *some*
> way to make it so the same name has multiple values, as I've seen it done
> before (somehow).  When posting the data though, the script is only
> recognizing the box checked with the highest value
>
> foreach ($_POST as $value) {
>echo "$value\n";
> }
>
> ^^^ Only shows the highest value
>
> Any ideas on how to do this without having to check for
> isset($_POST['california']), isset($_POST['alabama']) etc. etc.?
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] mkdir and directory permissions

2002-10-24 Thread Matias Silva
Hi-ya all, here's a quickie...

In my script I create a directory (mysql.backup.timestamp/) within a
directory called backup/.
I use  the function  mkdir("mysql.backup.timestamp", "0777");  and it shows
the permissions
as after the function executes:

drx--t   2 nobodydaemon1024 Oct 24 15:16
mysql.backup.October-24-2002-1516

Where's the permissions (drx--t   2 nobody   daemon) coming from?  Is it
the php.ini, apache conf or
the operating system?

I would like to set the owner to "root" and the group to "nc".  How can this
be achieved
by the php script?  Or do I have set this up in the other environments (OS
or Apache)?

Cheers!
-Matias




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Include

2002-10-03 Thread Matias Silva

This might sound like a dumb question but I just need verification so that
I can convince myself that I'm going insane!

I have this error in which I include 3 files (common_html.inc,
common_db.inc, common_functions.inc)
well I have a clean() function in the common_functions.inc file. But it
seems that it is not getting called
and then my script crashes.  If I comment out the clean() function then it
works.  The clean() function
is just for added security.

Is there a maximum number of times you can include different files?

-Matias



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php