Sponsored Content
Top Forums Shell Programming and Scripting Sessions across multiple scripts. Post 302929989 by Meow613 on Monday 29th of December 2014 10:33:39 AM
Old 12-29-2014
Sessions across multiple scripts.

I wish to be able to pass PHP values between multiple scripts. In each script, I have the following before any HTML code:

PHP Code:
<?php
            session_start
();
            
session_name("STORE");
            
session_set_cookie_params'lifetime''/var/www' );
            
session_id('Gingy');
            
set_time_limit(2400);
?>
The values of the variables are not visible in all scripts.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Multiple PHP sessions within the same browser instance

Dear all..... I am currently writing a Help-Desk / Knowledge Base application using PHP/PostGreSQL. I authenticate the user using a quite elaborate mechanism of cookies. The problem is that using cookies (I also have a version using sessions with the same problem), I can only seem to get one... (4 Replies)
Discussion started by: zazzybob
4 Replies

2. Solaris

Restricting Multiple loggin sessions

Any idea as to how multiple loggin sessions by the same user (using Hyper terminal/Telnet) be restricted in Sun Solaris 8. Rgds Naushi (10 Replies)
Discussion started by: Naushi
10 Replies

3. Shell Programming and Scripting

Creating multiple sessions

I have a program which gets an input file (which contain a list of objects) and processes the objects one by one sequentially. However when there are many objects it is faster to split the input into smaller lists and run the program in multiple terminal sessions simultaneously. I want to know if... (2 Replies)
Discussion started by: stevefox
2 Replies

4. AIX

Locking a file when using VI to prevent multiple-edit sessions by diff users

At the office, we often have to edit one file with VI. We are 4-6 workers doing it and sometimes can be done at the same time. We have found a problem and want to prevent it with a file lock. Is it possible and how ? problem : Worker-a starts edit VI session on File-A at 1PM Worker-b... (14 Replies)
Discussion started by: Browser_ice
14 Replies

5. UNIX for Advanced & Expert Users

Multiple Sessions with FTAM

Just a quick question, Can I establish Multiple Sessions between two machines using FTAM? Regards, Gaurav Goel (0 Replies)
Discussion started by: gauravgoel
0 Replies

6. AIX

Multiple sessions with xming

Hi. I installed xming to access to my servers but I have a problem : i can only have one session at a time ... i don't find any parameter to change this. Tks (3 Replies)
Discussion started by: stephnane
3 Replies

7. Red Hat

multiple ssh sessions

Hi, I use OpenSSH to log on to a RH server but when I enter the password 2 session windows appear. I only need one so can anyone advise where I can rectify this? R, D. (2 Replies)
Discussion started by: Duffs22
2 Replies

8. Shell Programming and Scripting

Calling multiple scripts from another scripts

Dear all, I am working on script which call other shell scripts in a loop but problem is from second script am not able to come out. Here is the snippet:- #!/bin/bash HSFILE=/root/Test/Components.txt LOGFile=/opt/domain/AdminDomain/application/logs... (3 Replies)
Discussion started by: sharsour
3 Replies

9. UNIX for Beginners Questions & Answers

To run multiple scripts

Hi , Can someone help! I need a shell script to run multiple scripts by using single shell script, incase any one of the scripts fails, it should get exit and after trouble shooting if we re-execute it, it should start from the failed script (4 Replies)
Discussion started by: anniesurolyn
4 Replies

10. UNIX for Advanced & Expert Users

Multiple Users - Multiple Scripts

Hello All, I have to restart 100's of scripts for at least 20+ users once the server restarts for any reason. I wanted to come up with a single script to trigger of all scripts/programs under all users with just one script (without root privilege). Is it possible to do so? :confused: If not,... (6 Replies)
Discussion started by: PikK45
6 Replies
PHPCREDITS(3)								 1							     PHPCREDITS(3)

phpcredits - Prints out the credits for PHP

SYNOPSIS
bool phpcredits ([int $flag = CREDITS_ALL]) DESCRIPTION
This function prints out the credits listing the PHP developers, modules, etc. It generates the appropriate HTML codes to insert the information in a page. PARAMETERS
o $flag - To generate a custom credits page, you may want to use the $flag parameter. Pre-defined phpcredits(3) flags +-----------------+---------------------------------------------------+ | name | | | | | | | description | | | | +-----------------+---------------------------------------------------+ | CREDITS_ALL | | | | | | | All the credits, equivalent to using: CRED- | | | ITS_DOCS + CREDITS_GENERAL + CREDITS_GROUP + | | | CREDITS_MODULES + CREDITS_FULLPAGE. It generates | | | a complete stand-alone HTML page with the appro- | | | priate tags. | | | | | CREDITS_DOCS | | | | | | | The credits for the documentation team | | | | |CREDITS_FULLPAGE | | | | | | | Usually used in combination with the other | | | flags. Indicates that a complete stand-alone HTML | | | page needs to be printed including the informa- | | | tion indicated by the other flags. | | | | |CREDITS_GENERAL | | | | | | | General credits: Language design and concept, | | | PHP authors and SAPI module. | | | | | CREDITS_GROUP | | | | | | | A list of the core developers | | | | |CREDITS_MODULES | | | | | | | A list of the extension modules for PHP, and | | | their authors | | | | | CREDITS_SAPI | | | | | | | A list of the server API modules for PHP, and | | | their authors | | | | +-----------------+---------------------------------------------------+ RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 Prints the general credits <?php phpcredits(CREDITS_GENERAL); ?> Example #2 Prints the core developers and the documentation group <?php phpcredits(CREDITS_GROUP | CREDITS_DOCS | CREDITS_FULLPAGE); ?> Example #3 Printing all the credits <html> <head> <title>My credits page</title> </head> <body> <?php // some code of your own phpcredits(CREDITS_ALL - CREDITS_FULLPAGE); // some more code ?> </body> </html> NOTES
Note phpcredits(3) outputs plain text instead of HTML when using the CLI mode. SEE ALSO
phpversion(3), php_logo_guid(3), phpinfo(3). PHP Documentation Group PHPCREDITS(3)
All times are GMT -4. The time now is 09:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy