Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 150
Zeile 630... Zeile 630...
630
    }
630
    }
Zeile 631... Zeile 631...
631
 
631
 
632
    /**
632
    /**
633
     * Set the session ID.
633
     * Set the session ID.
634
     *
634
     *
635
     * @param  string  $id
635
     * @param  string|null  $id
636
     * @return void
636
     * @return void
637
     */
637
     */
638
    public function setId($id)
638
    public function setId($id)
639
    {
639
    {
640
        $this->id = $this->isValidId($id) ? $id : $this->generateSessionId();
640
        $this->id = $this->isValidId($id) ? $id : $this->generateSessionId();
Zeile 641... Zeile 641...
641
    }
641
    }
642
 
642
 
643
    /**
643
    /**
644
     * Determine if this is a valid session ID.
644
     * Determine if this is a valid session ID.
645
     *
645
     *
646
     * @param  string  $id
646
     * @param  string|null  $id
647
     * @return bool
647
     * @return bool
648
     */
648
     */
649
    public function isValidId($id)
649
    public function isValidId($id)
Zeile 737... Zeile 737...
737
 
737
 
738
    /**
738
    /**
739
     * Set the underlying session handler implementation.
739
     * Set the underlying session handler implementation.
740
     *
740
     *
741
     * @param  \SessionHandlerInterface  $handler
741
     * @param  \SessionHandlerInterface  $handler
742
     * @return void
742
     * @return \SessionHandlerInterface
743
     */
743
     */
744
    public function setHandler(SessionHandlerInterface $handler)
744
    public function setHandler(SessionHandlerInterface $handler)
745
    {
745
    {
746
        return $this->handler = $handler;
746
        return $this->handler = $handler;