Hi,
You don't create new cookies in TYPO3. Extensions (I'm guessing you are
writing an extension) can add their own data to the TYPO3 cookie using
the method shown at the bottom of this page -
http://typo3.org/documentation/document-library/references/doc_core_tsre
f/4.1.0/view/14/1/
HTH
Ben
------------------------
Benjamin Todd
Web Developer
b.todd at emnet.co.uk
EMNET, PO Box 559, Nottingham, NG1 3LB
Tel: +44 (0)115 956 8260
Fax: +44 (0)115 956 8264
www.emnet.co.uk
Company Registration No. 3144383 - VAT No. 694 620 609 - Registered
Office: Church House, 13-15 Regent Street, Nottingham NG1 5BS
www.emnetsolutions.co.uk
Company Registration No. 05384178 - VAT No. 856 671 781 - Registered
office: Church House, 13-15 Regent Street, Nottingham, NG1 5BS
-----Original Message-----
From: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] On Behalf Of Korvo
Sent: 17 April 2008 01:05 PM
To: typo3-english at lists.netfielders.de
Subject: Re: [TYPO3] cookie fe_typo_user
Hi, thks for your answer
where i must put $TSFE->fe_user->user['username'] ??
in a ts_lib class?
Do you know what i must do to create a new cookie name
like for example
Name: user_typo3
(after maybe i can store username in his Content)
Fernandes
Post by Benjamin ToddHi Fernandes,
If you have FE users logged in, TYPO3 already stores the username in the
TypoScript Front End object.
Access it in any extension you are building like this:-
$TSFE->fe_user->user['username']
Access it in TypoScript setup like this:-
page.111 = TEXT
page.111.data = TSFE:fe_user|user|username
HTH,
Ben
------------------------
Benjamin Todd
Web Developer
b.todd at emnet.co.uk
EMNET, PO Box 559, Nottingham, NG1 3LB
Tel: +44 (0)115 956 8260
Fax: +44 (0)115 956 8264
www.emnet.co.uk
Company Registration No. 3144383 - VAT No. 694 620 609 - Registered
Office: Church House, 13-15 Regent Street, Nottingham NG1 5BS
www.emnetsolutions.co.uk
Company Registration No. 05384178 - VAT No. 856 671 781 - Registered
office: Church House, 13-15 Regent Street, Nottingham, NG1 5BS
-----Original Message-----
From: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] On Behalf Of Korvo
Sent: 16 April 2008 05:43 PM
To: typo3-english at lists.netfielders.de
Subject: [TYPO3] cookie fe_typo_user
Hi I'm trying to have a username in the Content of a cookie.
Name: fe_typo_user
Content:jonh.paes
but what is stored in Content is encrypted.
what else do i need to add in order to make it so.
any help is appreciated.
Fernandes
--
Sent from the TYPO3 English mailing list archive at Nabble.com.
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
Scanned for viruses by MailDefender
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
--
Sent from the TYPO3 English mailing list archive at Nabble.com.
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
Scanned for viruses by MailDefender