🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #230481

Re: sesje w CodeIgniterze

#230481
From: jivanmukta
Date: Mon, 21 Jul 2014 04:15
1 lines
1626 bytes
A co zrobić w przypadku gdy potrzebuję użyć sesji w bibliotece (library)? Użyłem $_SESSION a w konstruktorze wołam session_start(). Da się to zrobić lepiej? Mógłbym co prawda przekazywać konstruktorowi biblioteki referencję do obiektu sesji CI i używać $session->userdata() ale to rozwiązanie wydaje mi się dziwne.
Technical Details
Message-ID: <8b7c27c8-49f8-498a-ad2c-aeb6c1c455aa@googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin3!goblin.stu.neva.ru!news.ripco.com!news.glorb.com!h18no2701843igc.0!news-out.google.com!j6ni3315qas.0!nntp.google.com!j15no1748152qaq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
References: <11cd774f-f355-4e29-ad4d-ebdeae471318@googlegroups.com> <15bany4t731kc.1aswomrqx9565$.dlg@40tude.net>

Show Full Headers
Complete Article Headers
X-Received: by 10.50.28.15 with SMTP id x15mr183752igg.5.1405916125047;        Sun, 20 Jul 2014 21:15:25 -0700 (PDT)
X-Received: by 10.140.101.165 with SMTP id u34mr3197qge.15.1405916124933; Sun, 20 Jul 2014 21:15:24 -0700 (PDT)
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin3!goblin.stu.neva.ru!news.ripco.com!news.glorb.com!h18no2701843igc.0!news-out.google.com!j6ni3315qas.0!nntp.google.com!j15no1748152qaq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: pl.comp.lang.php
Date: Sun, 20 Jul 2014 21:15:24 -0700 (PDT)
In-Reply-To: <15bany4t731kc.1aswomrqx9565$.dlg@40tude.net>
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.24.140.168; posting-account=Fd8BNwoAAACl8PCi6-fI0bkHGOgt6LMa
NNTP-Posting-Host: 83.24.140.168
References: <11cd774f-f355-4e29-ad4d-ebdeae471318@googlegroups.com> <15bany4t731kc.1aswomrqx9565$.dlg@40tude.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8b7c27c8-49f8-498a-ad2c-aeb6c1c455aa@googlegroups.com>
Subject: Re: sesje w CodeIgniterze
From: jivanmukta@poczta.onet.pl
Injection-Date: Mon, 21 Jul 2014 04:15:24 +0000
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit