Function in php to update session using two parameters?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rahullko05
    New Member
    • Oct 2008
    • 34

    Function in php to update session using two parameters?

    Q1.Hello guys i'm trying to make a function named as "updateSession( )" to assign values in session variales. Also the function should have two parameters.
    A. session variable key name that neesd to be set in session array.
    B. session variable value that needs to be assigned to the key name first parameter. for eg: if we need to assign a value "steave"
    to a key named "username" then we would add(use) a function as updateSession(" username", "steave");

    Please help me..i got stucked
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    What exactly are you having trouble with? Show us what you've already tried.

    Comment

    Working...