How i can get the requester's IP address when open new session.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

How i can get the requester's IP address when open new session.

dtrussardi@tiscali.it
Hi All,

        i'm interested to define the request's IP address when i open a new WASession.

        I do some test in the WASession  start message but i don't find the solution.

        Any pointers would be greatly appreciated !

        Dario_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: How i can get the requester's IP address when open new session.

Nick
try something like (not tested):

self requestContext request remoteAddress

On 26 February 2011 12:36, [hidden email] <[hidden email]> wrote:

> Hi All,
>
>        i'm interested to define the request's IP address when i open a new WASession.
>
>        I do some test in the WASession  start message but i don't find the solution.
>
>        Any pointers would be greatly appreciated !
>
>        Dario_______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: How i can get the requester's IP address when open new session.

dtrussardi@tiscali.it
Ok,

        i found the problem:
       
                self requestContext request remoteAddress
       
                work fine in direct execution.


        If open debug window from WASession start message and submit the same request :

                self requestContext request remoteAddress

        the system erase a error.

        Thank,


        Dario



> try something like (not tested):
>
> self requestContext request remoteAddress
>
> On 26 February 2011 12:36, [hidden email] <[hidden email]> wrote:
>> Hi All,
>>
>>        i'm interested to define the request's IP address when i open a new WASession.
>>
>>        I do some test in the WASession  start message but i don't find the solution.
>>
>>        Any pointers would be greatly appreciated !
>>
>>        Dario_______________________________________________
>> seaside mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: How i can get the requester's IP address when open new session.

Intrader Intrader
dtrussardi, makes sense that it does not work from the debug session as that
would modify the session.

i am not sure of this, don't do it while debugging.

Using the halos you can do a new session.


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: How i can get the requester's IP address when opennew session.

Boris Popov, DeepCove Labs (SNN)
That has nothing to do with safety, in fact developing in the debugger
is one of the pros, but rather with how debuggers treat notifications,
which are used to obtain a request context. In VisualWorks, session
shows up in the scope list so you could inspect it from there for easy
access.

-Boris

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Fritz
Schenk
Sent: Saturday, February 26, 2011 3:56 PM
To: [hidden email]
Subject: [Seaside] Re: How i can get the requester's IP address when
opennew session.

dtrussardi, makes sense that it does not work from the debug session as
that would modify the session.

i am not sure of this, don't do it while debugging.

Using the halos you can do a new session.


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: How i can get the requester's IP address when opennew session.

Intrader Intrader
Boris, good to know. Thanks

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside