passing session id in an XML file

View: New views
7 Messages — Rating Filter:   Alert me  

passing session id in an XML file

by Deborah Sherwood :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have a site that uses flash, XML and lasso. I set a session to use  
both cookies and links.

The nav menu is a flash component that uses an XML file.

Would I have to re-write the XML file every time a session is started  
to store the session ID in the XML link?

The session is not passing when I click on the menu link.

???

Deborah




--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Re: passing session id in an XML file

by Deco Rior :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have normally just passed the session_id as part of the url link to  
the flash component as a a parameter. I am not sure it would work in  
your case. This would likely require some work inside the Flash  
component if you want to propagate the link method of passing a session.

You should not have to do this if you just use cookies

Deco.
On Jul 20, 2008, at 7:52 AM, Deborah Sherwood wrote:

> Hi,
>
> I have a site that uses flash, XML and lasso. I set a session to use  
> both cookies and links.
>
> The nav menu is a flash component that uses an XML file.
>
> Would I have to re-write the XML file every time a session is  
> started to store the session ID in the XML link?
>
> The session is not passing when I click on the menu link.
>
> ???
>
> Deborah
>
>
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Re: passing session id in an XML file

by Deborah Sherwood :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Deco,

I realized after I posted this that I can easily pass a variable in  
the xml without rewriting it (xxx.lasso?Token.myVar=[$varid]). Is the  
session id not a variable?

I will try it with just cookies, too.

THANKS

On Jul 20, 2008, at 10:46 AM, Deco Rior wrote:

> I have normally just passed the session_id as part of the url link  
> to the flash component as a a parameter. I am not sure it would  
> work in your case. This would likely require some work inside the  
> Flash component if you want to propagate the link method of passing  
> a session.
>
> You should not have to do this if you just use cookies
>
> Deco.
> On Jul 20, 2008, at 7:52 AM, Deborah Sherwood wrote:
>
>> Hi,
>>
>> I have a site that uses flash, XML and lasso. I set a session to  
>> use both cookies and links.
>>
>> The nav menu is a flash component that uses an XML file.
>>
>> Would I have to re-write the XML file every time a session is  
>> started to store the session ID in the XML link?
>>
>> The session is not passing when I click on the menu link.
>>
>> ???
>>
>> Deborah
>>
>>
>>
>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Re: passing session id in an XML file

by Deco Rior :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No need to create a variable. Just use:

[session_id:-name="xxx"]

It will append the session value to it.

You may want to append the full session link.

-session=xxx:[session_id:-name="xxx"]

D
On Jul 20, 2008, at 9:34 AM, Deborah Sherwood wrote:

> Hi Deco,
>
> I realized after I posted this that I can easily pass a variable in  
> the xml without rewriting it (xxx.lasso?Token.myVar=[$varid]). Is  
> the session id not a variable?
>
> I will try it with just cookies, too.
>
> THANKS
>
> On Jul 20, 2008, at 10:46 AM, Deco Rior wrote:
>
>> I have normally just passed the session_id as part of the url link  
>> to the flash component as a a parameter. I am not sure it would  
>> work in your case. This would likely require some work inside the  
>> Flash component if you want to propagate the link method of passing  
>> a session.
>>
>> You should not have to do this if you just use cookies
>>
>> Deco.
>> On Jul 20, 2008, at 7:52 AM, Deborah Sherwood wrote:
>>
>>> Hi,
>>>
>>> I have a site that uses flash, XML and lasso. I set a session to  
>>> use both cookies and links.
>>>
>>> The nav menu is a flash component that uses an XML file.
>>>
>>> Would I have to re-write the XML file every time a session is  
>>> started to store the session ID in the XML link?
>>>
>>> The session is not passing when I click on the menu link.
>>>
>>> ???
>>>
>>> Deborah
>>>
>>>
>>>
>>>
>>> --
>>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>>
>>
>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>>
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>




--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Re: passing session id in an XML file

by bilcorry :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Deco Rior wrote on 7/20/2008 10:39 AM:
> You may want to append the full session link.
>
> -session=xxx:[session_id:-name="xxx"]

You can also use lp_session_id to generate that string:

        <a href="somepage.lasso?[lp_session_id(-url)->join('&')]">my link</a>

The advantage there is it will grab all session IDs and you don't need to know the name of the session(s).

Tag is here:

        <http://tagswap.net/lp_session_id/>


- Bil


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Re: passing session id in an XML file

by Deborah Sherwood :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Bill,

I'm not that familiar with custom tags - can I just include your tag  
in the lassoscript on my page?

I'm still getting this in the address bar:

...myLassoPage.lasso?[lp_session_id(-url)->join('&')]

Here is a node from my .xml page

<mainitem title="Upload" link="myLasspPage.lasso?[lp_session_id(-url)-
 >join('&')]" target="" enabled="true" icon="">
</mainitem>

in other words, its not working.

deborah
>


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Re: passing session id in an XML file

by bilcorry :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Deborah Sherwood wrote on 7/21/2008 7:05 AM:
> I'm not that familiar with custom tags - can I just include your tag in
> the lassoscript on my page?

Yes, or place it in the LassoStartup folder and restart Lasso.


> I'm still getting this in the address bar:
>
> ...myLassoPage.lasso?[lp_session_id(-url)->join('&')]
>
> Here is a node from my .xml page
>
> <mainitem title="Upload"
> link="myLasspPage.lasso?[lp_session_id(-url)->join('&')]" target=""
> enabled="true" icon="">
> </mainitem>
>
> in other words, its not working.

If you're seeing Lasso code in the URL, then that's an issue with your setup, not my tag.  Either that file isn't being served as a Lasso file, or you have that section of code surrounded by HTML comments, [noprocess] or some other funkery that is preventing Lasso from processing the Lasso code.


- Bil


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/

LightInTheBox - Buy quality products at wholesale price