From webshtracey01@example.net Thu Jan 03 14:00:09 2008
Return-Path: <webshtracey01@example.net>
Delivered-To: tracey01@example.net
Received: (qmail 43282 invoked from network); 3 Jan 2008 14:00:09 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 3 Jan 2008 14:00:09 -0000
Received: (qmail 92197 invoked by uid 500); 3 Jan 2008 13:59:58 -0000
Delivered-To: tracey01@example.net
Received: (qmail 92123 invoked by uid 500); 3 Jan 2008 13:59:58 -0000
Mailing-List: contact tracey01@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:tracey01@example.net>
List-Unsubscribe: <mailto:tracey01@example.net>
List-Post: <mailto:tracey01@example.net>
List-Id: <websh-user.tcl.apache.org>
Delivered-To: mailing list tracey01@example.net
Received: (qmail 92112 invoked by uid 99); 3 Jan 2008 13:59:57 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2008 05:59:57 -0800
X-ASF-Spam-Status: No, hits=1.2 required=10.0
	tests=SPF_NEUTRAL
X-Spam-Check-By: apache.org
Received-SPF: neutral (nike.apache.org: 83.161.120.155 is neither permitted nor denied by domain of tracey01@example.net)
Received: from [83.161.120.155] (HELO fs1.netcetera.com.mk) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2008 13:59:46 +0000
Received: from anikovnew.netcetera.com.mk ([83.161.120.155])
	by fs1.netcetera.com.mk (8.13.4/8.13.4) with ESMTP id m03DxXgg007939;
	Thu, 3 Jan 2008 14:59:33 +0100
Message-ID: <tracey01@example.net>
Date: Thu, 03 Jan 2008 14:59:33 +0100
From: Aleksandar Nikov <tracey01@example.net>
User-Agent: Thunderbird 83.161.120.155 (X11/20070615)
MIME-Version: 1.0
To: =?ISO-8859-1?Q?Lapr=E9vote_Arnaud?= <tracey01@example.net>
CC: tracey01@example.net
Subject: Re: websh - I need a cookie !!!
References: <tracey01@example.net> <tracey01@example.net> <tracey01@example.net>
In-Reply-To: <tracey01@example.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Checked: Checked by ClamAV on apache.org

Hi Arnaud,


>
> Thank you very much for your answer. However, it does not work. I have 
> tried in many ways with initialisation at very start or just before my 
> function, but nothing work.

You should also do fas_context888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4init $cookie_name before using the cset 
function.
(I forgot to mention this, in the cookie.ws3 example it is in the 
w888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4command default part).

More info you can get from:
http://tcl.apache.org/websh/quickref/context_handling.html#w888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4cookiecontext


Regards,
Alex




-- 
Aleksandar Nikov | tracey01@example.net
phone (636)592-4205 | fax (636)592-4205
Netcetera | 1000 Skopje | Macedonia | http://netcetera.com.mk


---------------------------------------------------------------------
To unsubscribe, e-mail: tracey01@example.net
For additional commands, e-mail: tracey01@example.net


From webshtracey01@example.net Thu Jan 03 14:18:00 2008
Return-Path: <webshtracey01@example.net>
Delivered-To: tracey01@example.net
Received: (qmail 52496 invoked from network); 3 Jan 2008 14:18:00 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 3 Jan 2008 14:18:00 -0000
Received: (qmail 14371 invoked by uid 500); 3 Jan 2008 14:17:49 -0000
Delivered-To: tracey01@example.net
Received: (qmail 14359 invoked by uid 500); 3 Jan 2008 14:17:49 -0000
Mailing-List: contact tracey01@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:tracey01@example.net>
List-Unsubscribe: <mailto:tracey01@example.net>
List-Post: <mailto:tracey01@example.net>
List-Id: <websh-user.tcl.apache.org>
Delivered-To: mailing list tracey01@example.net
Delivered-To: moderator for tracey01@example.net
Received: (qmail 94034 invoked by uid 99); 3 Jan 2008 11:01:23 -0000
X-ASF-Spam-Status: No, hits=1.2 required=10.0
	tests=SPF_NEUTRAL
X-Spam-Check-By: apache.org
Received-SPF: neutral (athena.apache.org: local policy)
X-Virus-Scanned: Debian tracey01@example.net
Message-ID: <tracey01@example.net>
Date: Thu, 03 Jan 2008 12:08:38 +0100
From: =?ISO-8859-1?Q?Lapr=E9vote_Arnaud?= <tracey01@example.net>
User-Agent: Thunderbird 83.161.120.155 (X11/20070620)
MIME-Version: 1.0
To: Aleksandar Nikov <tracey01@example.net>
CC:  tracey01@example.net
Subject: Re: websh - I need a cookie !!!
References: <tracey01@example.net> <tracey01@example.net>
In-Reply-To: <tracey01@example.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Virus-Checked: Checked by ClamAV on apache.org

Dear Aleksandar,

Thank you very much for your answer. However, it does not work. I have 
tried in many ways with initialisation at very start or just before my 
function, but nothing work.

At the end I just put the code as you propose it in my cookie functions. 
The error I keep having is :

[error] [client 83.161.120.155] no context to commit.\n
  while executing\n"error "no context to commit.""\n    (procedure 
"fas_context888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4
commit" line 7)\n    invoked from within\n"fas_context888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ommit"\n 
(procedure
"fas_set_cookie" line 25)\n    invoked from within\n"fas_set_cookie 
fas_session
$session_name"\n    (procedure "fas_session888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4xport_session" line 8)\n 
   invoke
d from within\n"fas_session888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4xport_session"\n    (procedure 
"not_binary888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4onten
t_display" line 41)\n    invoked from 
within\n"not_binary888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ontent_display fasht
ml "<center><h1>An error just occured</h1></center><pre>$error<br 
/>$888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4rrorInfo
</pre>""\n    invoked from within\n"if { ![check_root $file] } 
{\n\t\tnot_binary
888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ontent_display fashtml "<html><head><title>[translate "Error in "] 
${FAS_VIEW
_CGI}</title><body>[translate..."\n    invoked from within\n"w888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4dispatch"

I checked a little in cookie.ws3, and I see the error generation, but I 
do not understand why I (always) have it.

Friendly yours,

Arnaud LAPREVOTE
PS : I was pleased to have a message from somebody in Skopje. It gave me 
the occasion to look where it is.

Aleksandar Nikov a écrit :
> Hello Arnaud,
> 
>>
>> I need a cookie. I know there are very nice sessions. But I really 
>> need a cookie. I have a cross-technology web application. It works on 
>> cgi (with cgi.tcl), on tclhttpd, on rivet, and I am porting it to 
>> websh. As it is such an application, I have my own session 
>> environment. And I need to create it again. And I do not catch how 
>> cookies are implemented in websh.
> You can see the cookie example at 
> http://tcl.apache.org/websh/examples/cookie.html
> 
> Basically for setting a cookie in your code would be:
> 
> w888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4cookiecontext fas_context
> fas_context888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4set $cookie_name $cookie_value
> fas_context888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ommit
> 
> Reading a cookie would be:
> 
> w888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4cookiecontext fas_context
> set cookie_value [fas_context888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4get $cookie_name]
> fas_context888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ommit
> 
> 
> Of course, the initialization of the fas_context can be moved to a 
> separate initialization part thus preventing multiple initialization parts.
> 
> Also be careful that cookie context need to be committed before any 
> web:puts as it must be sent in the http headers (before sending any part 
> of a page body).
> 
> Regards,
> Alex
> 

-- 
Arnaud LAPREVOTE - Directeur R&D                   Mandriva/Linbox FAS
152, rue de Grigy                      Technopôle Metz 2000 57070 METZ
43, rue d'Aboukir                                          75002 PARIS
tel : 03 87 50 87 90 - 06 11 36 15 30             fax : 03 87 75 19 26
E-mail : tracey01@example.net        Web: http://mandriva.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tracey01@example.net
For additional commands, e-mail: tracey01@example.net


From webshtracey01@example.net Thu Jan 03 14:21:13 2008
Return-Path: <webshtracey01@example.net>
Delivered-To: tracey01@example.net
Received: (qmail 59082 invoked from network); 3 Jan 2008 14:21:13 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 3 Jan 2008 14:21:13 -0000
Received: (qmail 22053 invoked by uid 500); 3 Jan 2008 14:21:02 -0000
Delivered-To: tracey01@example.net
Received: (qmail 22035 invoked by uid 500); 3 Jan 2008 14:21:01 -0000
Mailing-List: contact tracey01@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:tracey01@example.net>
List-Unsubscribe: <mailto:tracey01@example.net>
List-Post: <mailto:tracey01@example.net>
List-Id: <websh-user.tcl.apache.org>
Delivered-To: mailing list tracey01@example.net
Delivered-To: moderator for tracey01@example.net
Received: (qmail 19100 invoked by uid 99); 3 Jan 2008 14:19:50 -0000
X-ASF-Spam-Status: No, hits=1.2 required=10.0
	tests=SPF_NEUTRAL
X-Spam-Check-By: apache.org
Received-SPF: neutral (nike.apache.org: local policy)
X-Virus-Scanned: Debian tracey01@example.net
Message-ID: <tracey01@example.net>
Date: Thu, 03 Jan 2008 15:27:11 +0100
From: =?ISO-8859-1?Q?Lapr=E9vote_Arnaud?= <tracey01@example.net>
User-Agent: Thunderbird 83.161.120.155 (X11/20070620)
MIME-Version: 1.0
To: Aleksandar Nikov <tracey01@example.net>
CC:  tracey01@example.net
Subject: Re: websh - I need a cookie !!!
References: <tracey01@example.net> <tracey01@example.net> <tracey01@example.net> <tracey01@example.net>
In-Reply-To: <tracey01@example.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Virus-Checked: Checked by ClamAV on apache.org

Thanks, this time it seems to work (I mean, it does not crash, but I 
have to look in more details). Thanks a lot for your help.

Friendly yours,

Arnaud LAPREVOTE

Aleksandar Nikov a écrit :
> Hi Arnaud,
> 
> 
>>
>> Thank you very much for your answer. However, it does not work. I have 
>> tried in many ways with initialisation at very start or just before my 
>> function, but nothing work.
> 
> You should also do fas_context888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4init $cookie_name before using the cset 
> function.
> (I forgot to mention this, in the cookie.ws3 example it is in the 
> w888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4command default part).
> 
> More info you can get from:
> http://tcl.apache.org/websh/quickref/context_handling.html#w888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4cookiecontext 
> 
> 
> 
> Regards,
> Alex
> 
> 
> 
> 

-- 
Arnaud LAPREVOTE - Directeur R&D                   Mandriva/Linbox FAS
152, rue de Grigy                      Technopôle Metz 2000 57070 METZ
43, rue d'Aboukir                                          75002 PARIS
tel : 03 87 50 87 90 - 06 11 36 15 30             fax : 03 87 75 19 26
E-mail : tracey01@example.net        Web: http://mandriva.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tracey01@example.net
For additional commands, e-mail: tracey01@example.net



{'source': 'Apache Software Foundation Public Mail Archives'}