|
Posted by scout3014 on 07/26/07 09:10
On Jul 26, 4:44 pm, Captain Paralytic <paul_laut...@yahoo.com> wrote:
> On 26 Jul, 09:35, scout3...@gmail.com wrote:
>
>
>
>
>
> > Hi
>
> > I am currently doing a php logging in function with user level
> > (meaning which user shld go to which page). Currently i am at a loss
> > of creating session parameters. The following code is used to
> > determine which user is logging in:
>
> > $level = $row['userlevel'];
> > switch ($level){
> > case 1:
> > //redirect to employee page to apply leave
> > include("employee.php");
> > break;
> > case 2:
> > //redirect to employer showing all his employees applying
> > leave
> > include("employer.php");
> > break;
>
> > on e same file i have started my session with the intention of
> > creating some session attributes.
> > however when i try to do that i get tis message:
>
> > Fatal error: Call to undefined function start() in C\......login.php
> > on line 9
>
> > Line 9 is session.start();
>
> > Anyone can help me with this issue. Thanks alot
>
> The manual can help you. That is where you will find that the function
> is called session_start() and not sesion.start()!- Hide quoted text -
>
> - Show quoted text -
oops. Sorry abt tat but nw there is a new error
session_start() [function.session-start]: Cannot send session cache
limiter - headers already sent
Navigation:
[Reply to this message]
|