answersLogoWhite

0

$_SESSION['name'] = "RAGHAV";

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

How do you reset session variables?

<?php // start session session_start(); // Assign value to session $user = $_SESSION['variable_name']; // variable_name = value to store in session // To reset session variable use below method unset($user); // If you want to destroy all session variables use below method session_destroy(); // destroys all session variables ?>


What variables are maintained while the browser is opened?

Session Variables


How do you set the session variables in jsp?

The session variables can be accessed in a jsp page from the request object. Note: Accessing session contents in JSP is not a good design practice


What are register variables?

A register variables is that which got space in CPU internal register sets this requst can be granted or rejected by CPU ,by register veriable the processing speed become much faster for that variable.


What is the scope of register variables?

The block they are declared in.


Memory allocation of variables declared in a program is?

in register


Where do register variables get stored?

Either in registers or on the stack.


What are register variables What are the advantage of using register variables?

Asks the compiler to devote a processor register to this variable in order to speed the program's execution. The compiler may not comply and the variable looses it contents and identity when the function it which it is defined terminates.


How do you identify the register variables?

Registry variables can be identified with registry allocation. The programmer will decide on the variables that need to be assigned to the registry, and variables not assigned to the registry will be held in RAM.


What is Advantages of register variables in C?

Faster execution of code.


How do you maintain a session in a PHP quiz script?

All you have to do to maintain a session is start it before you call any variables. Once you've started the session, you can store variables for use in later scripts. Beware though, once the user closes the browser, the sessions' over. I'd use the following SCRIPT 1: <?php // Start session session_start(); // Set some variables (this simulates form input) $_SESSION['answers']['Q1'] = 18; $_SESSION['answers']['Q2'] = 36; $_SESSION['answers']['Q4'] = "Fred"; ?> ============================= Hope that helps...


Where does global static local register variables free memory and C Program instructions get stored?

* These are all implementation defined. Access to `register' specified indentifiers should be as fast as possible, so the compiler may place the value in a machine register. However, the compiler is free to treat a `register' declaration as an `auto' declaration. * Where free memory is maintained is an OS specific concept. Instructions are generally stored in code segement. Local Variables are stored in Stack. Register variables are stored in Register. Global & static variables are stored in data segment. The memory created dynamically are stored in Heap And the C program instructions get stored in code segment.