Custom session -ID

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

Custom session -ID

James Sheffer
Hey everyone - long time no see :-)

I thought I could set a custom session ID in Lasso when starting a new session but when I try the code below I get an error:

session_start(-Name= $cart_id, -ID= '123abc’);

ERROR:

Attempt to modify a frozen value. The value was "123abc" of type "string". (=)


I have a page that, among other things, checks to see if the user has already placed an online order by checking the current sessionID against the sessionID’s stored in the orders table after an order has been placed.

I need to make some modifications to the code and want to start a new session using a sessionID that has already been used in the order process to test.

Since this is only for testing I’m not worried about security…

Can anyone point me in the right direction and show me the error in my ways?

Thank you!


James Sheffer
[hidden email]
www.higherpowered.com
469-256-0268






#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Custom session -ID

stevepiercy
http://reference.lassosoft.com/LassoReference.LassoApp?lassoscript/browse

-UseNone can also be specified if neither method of propagating
the session is desired. In this case the session ID must be
propagated by the site designer using some other method. A
manually propagated session ID can be passed into the
[Session_Start] tag in the -ID parameter.

session_start(
     -name='session name',
     -expires=some_integer_minutes,
     -usenone,
     -id='session id');

--steve


On 11/6/17 at 9:35 AM, [hidden email] (James Sheffer) pronounced:

>Hey everyone - long time no see :-)
>
>I thought I could set a custom session ID in Lasso when
>starting a new session but when I try the code below I get an error:
>
>session_start(-Name= $cart_id, -ID= '123abc’);
>
>ERROR:
>
>Attempt to modify a frozen value. The value was "123abc" of type "string". (=)
>
>
>I have a page that, among other things, checks to see if the
>user has already placed an online order by checking the current
>sessionID against the sessionID’s stored in the orders table
>after an order has been placed.
>
>I need to make some modifications to the code and want to start
>a new session using a sessionID that has already been used in
>the order process to test.
>
>Since this is only for testing I’m not worried about security…
>
>Can anyone point me in the right direction and show me the error in my ways?
>
>Thank you!
>
>
>James Sheffer
>[hidden email]
>www.higherpowered.com
>469-256-0268
>
>
>
>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Eugene, OR
<[hidden email]>               <http://www.stevepiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Custom session -ID

James Sheffer
Steve-

Thanks - I tried the following but got the same error (in fact, I’ve stripped the test page to only this code right now just to verify that the sessionID I entered is actually being used):

------------------------------
include('globals.lasso’); // includes $cart_id

session_start( -name= $cart_id, -expires=30, -usenone, -id=‘123abc');


'Session_ID: ';
Session_ID: -Name= $cart_id;
'<br />’;
——————————————


And the entire error:
——————————————

Attempt to modify a frozen value. The value was "123abc" of type "string". (=)
at: start with params: -name='test1', -expires=30, -usenone, -id='123abc'
at: /test_sessionid.lasso on line: 8 at position: 2

——————————————


Really all I am trying to do is verify that the code works.  Since people place multiple orders in a row on this particular site, I need to check their sessionID against the orders table and reset the session if they just ordered.

My thought was that I was going to take a sessionID from the orders table and hard code it into my test page to make sure the code does as it should :-)

— for various reasons, placing a test order myself and using that as a test is not an option…

I can find another way to test, I just thought it would be easiest to create a test page with the code and add the sessionIM manually :-)


James Sheffer
[hidden email]
www.higherpowered.com
469-256-0268





> On Nov 6, 2017, at 12:35 PM, Steve Piercy - Website Builder <[hidden email]> wrote:
>
> http://reference.lassosoft.com/LassoReference.LassoApp?lassoscript/browse
>
> -UseNone can also be specified if neither method of propagating the session is desired. In this case the session ID must be propagated by the site designer using some other method. A manually propagated session ID can be passed into the [Session_Start] tag in the -ID parameter.
>
> session_start(
>    -name='session name',
>    -expires=some_integer_minutes,
>    -usenone,
>    -id='session id');
>
> --steve
>
>
> On 11/6/17 at 9:35 AM, [hidden email] (James Sheffer) pronounced:
>
>> Hey everyone - long time no see :-)
>>
>> I thought I could set a custom session ID in Lasso when starting a new session but when I try the code below I get an error:
>>
>> session_start(-Name= $cart_id, -ID= '123abc’);
>>
>> ERROR:
>>
>> Attempt to modify a frozen value. The value was "123abc" of type "string". (=)
>>
>>
>> I have a page that, among other things, checks to see if the user has already placed an online order by checking the current sessionID against the sessionID’s stored in the orders table after an order has been placed.
>>
>> I need to make some modifications to the code and want to start a new session using a sessionID that has already been used in the order process to test.
>>
>> Since this is only for testing I’m not worried about security…
>>
>> Can anyone point me in the right direction and show me the error in my ways?
>>
>> Thank you!
>>
>>
>> James Sheffer
>> [hidden email]
>> www.higherpowered.com
>> 469-256-0268
>>
>>
>>
>>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Steve Piercy              Website Builder              Eugene, OR
> <[hidden email]>               <http://www.stevepiercy.com/>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
> the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Custom session -ID

stevepiercy
This works for me.

     session_start(
         -name='mysession',
         -expires=60,
         -usenone,
         -id='abc123');

     session_id(-name='mysession');

=>
abc123

You might have something lurking in your include.  Also dunno if
Apple Mail (a POS mail client) is being "helpful" by
auto-correcting your ' to ‘, but you should check for that and
similar gremlins in your code.  The error stack with this bit:

     at: start with params

is suspicious to me.  I would expect this:

     at: session_start with params

--steve


On 11/6/17 at 2:55 PM, [hidden email] (James Sheffer) pronounced:

>Steve-
>
>Thanks - I tried the following but got the same error (in fact,
>I’ve stripped the test page to only this code right now just
>to verify that the sessionID I entered is actually being used):
>
>------------------------------
>include('globals.lasso’); // includes $cart_id
>
>session_start( -name= $cart_id, -expires=30, -usenone, -id=‘123abc');
>
>
>'Session_ID: ';
>Session_ID: -Name= $cart_id;
>'<br />’;
>——————————————
>
>
>And the entire error:
>——————————————
>
>Attempt to modify a frozen value. The value was "123abc" of type "string". (=)
>at: start with params: -name='test1', -expires=30, -usenone, -id='123abc'
>at: /test_sessionid.lasso on line: 8 at position: 2
>
>——————————————
>
>
>Really all I am trying to do is verify that the code works.  
>Since people place multiple orders in a row on this particular
>site, I need to check their sessionID against the orders table
>and reset the session if they just ordered.
>
>My thought was that I was going to take a sessionID from the
>orders table and hard code it into my test page to make sure
>the code does as it should :-)
>
>— for various reasons, placing a test order myself and using
>that as a test is not an option…
>
>I can find another way to test, I just thought it would be
>easiest to create a test page with the code and add the
>sessionIM manually :-)
>
>
>James Sheffer
>[hidden email]
>www.higherpowered.com
>469-256-0268
>
>
>
>
>
>>On Nov 6, 2017, at 12:35 PM, Steve Piercy - Website Builder <[hidden email]> wrote:
>>
>>http://reference.lassosoft.com/LassoReference.LassoApp?lassoscript/browse
>>
>>-UseNone can also be specified if neither method of propagating the session is desired.
>In this case the session ID must be propagated by the site
>designer using some other method. A manually propagated session
>ID can be passed into the [Session_Start] tag in the -ID parameter.
>>
>>session_start(
>>-name='session name',
>>-expires=some_integer_minutes,
>>-usenone,
>>-id='session id');
>>
>>--steve
>>
>>
>>On 11/6/17 at 9:35 AM, [hidden email] (James Sheffer) pronounced:
>>
>>> Hey everyone - long time no see :-)
>>>   I thought I could set a custom session ID in Lasso when
>>>starting a new session but when
>I try the code below I get an error:
>>>   session_start(-Name= $cart_id, -ID= '123abc’);
>>>   ERROR:
>>>   Attempt to modify a frozen value. The value was "123abc"
>>>of type "string". (=)
>>>    I have a page that, among other things, checks to see if
>>>the user has already placed an
>online order by checking the current sessionID against the
>sessionID’s stored in the orders table after an order has
>been placed.
>>>   I need to make some modifications to the code and want to
>>>start a new session using a
>sessionID that has already been used in the order process to test.
>>>   Since this is only for testing I’m not worried about security…
>>>   Can anyone point me in the right direction and show me the
>>>error in my ways?
>>>   Thank you!
>>>    James Sheffer
>>> [hidden email]
>>> www.higherpowered.com
>>> 469-256-0268
>>>        #############################################################
>>>   This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>Steve Piercy              Website Builder              Eugene, OR
>><[hidden email]>               <http://www.stevepiercy.com/>
>>
>>
>>#############################################################
>>
>>This message is sent to you because you are subscribed to
>>the mailing list Lasso [hidden email]
>>Official list archives available at http://www.lassotalk.com
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Eugene, OR
<[hidden email]>               <http://www.stevepiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Custom session -ID

James Sheffer
Steve-

Okay, I really don’t need one of those “weird days” of problems :-)

I’m going to restart the server just to be safe.  I can get the following to work:


include('globals.lasso'); // includes $cart_id
       
        var('sID') = '6CF31A4619205251CDRgwr90B801';
               
        session_start(
    -name= $cart_id,
    -expires=30,
    -usenone,
    -id= $sID);

                'Session_ID: ';
                Session_ID: -Name= $cart_id;
                '<br />’;

If I just add the session to the “-id=“ line, I get the frozen values error but if create a variable first and add it I don’t get the error.  Almost as if the “-id” parameter is expecting something other than a string (which can’t be the case as the session is a string!).

BUT…

What I was expecting to happen is not happening.  Each time I reload the page, it creates a new sessionID.  It is not using the value of the “-id” parameter.  I was expecting to see “ 6CF31A4619205251CDRgwr90B801” each time the page loads...

James

> On Nov 6, 2017, at 3:26 PM, Steve Piercy - Website Builder <[hidden email]> wrote:
>
> This works for me.
>
>    session_start(
>        -name='mysession',
>        -expires=60,
>        -usenone,
>        -id='abc123');
>
>    session_id(-name='mysession');
>
> =>
> abc123
>
> You might have something lurking in your include.  Also dunno if Apple Mail (a POS mail client) is being "helpful" by auto-correcting your ' to ‘, but you should check for that and similar gremlins in your code.  The error stack with this bit:
>
>    at: start with params
>
> is suspicious to me.  I would expect this:
>
>    at: session_start with params
>
> --steve
>
>
> On 11/6/17 at 2:55 PM, [hidden email] (James Sheffer) pronounced:
>
>> Steve-
>>
>> Thanks - I tried the following but got the same error (in fact, I’ve stripped the test page to only this code right now just to verify that the sessionID I entered is actually being used):
>>
>> ------------------------------
>> include('globals.lasso’); // includes $cart_id
>>
>> session_start( -name= $cart_id, -expires=30, -usenone, -id=‘123abc');
>>
>>
>> 'Session_ID: ';
>> Session_ID: -Name= $cart_id;
>> '<br />’;
>> ——————————————
>>
>>
>> And the entire error:
>> ——————————————
>>
>> Attempt to modify a frozen value. The value was "123abc" of type "string". (=)
>> at: start with params: -name='test1', -expires=30, -usenone, -id='123abc'
>> at: /test_sessionid.lasso on line: 8 at position: 2
>>
>> ——————————————
>>
>>
>> Really all I am trying to do is verify that the code works.  Since people place multiple orders in a row on this particular site, I need to check their sessionID against the orders table and reset the session if they just ordered.
>>
>> My thought was that I was going to take a sessionID from the orders table and hard code it into my test page to make sure the code does as it should :-)
>>
>> — for various reasons, placing a test order myself and using that as a test is not an option…
>>
>> I can find another way to test, I just thought it would be easiest to create a test page with the code and add the sessionIM manually :-)
>>
>>
>> James Sheffer
>> [hidden email]
>> www.higherpowered.com
>> 469-256-0268
>>
>>
>>
>>
>>
>>> On Nov 6, 2017, at 12:35 PM, Steve Piercy - Website Builder <[hidden email]> wrote:
>>>
>>> http://reference.lassosoft.com/LassoReference.LassoApp?lassoscript/browse
>>>
>>> -UseNone can also be specified if neither method of propagating the session is desired.
>> In this case the session ID must be propagated by the site designer using some other method. A manually propagated session ID can be passed into the [Session_Start] tag in the -ID parameter.
>>>
>>> session_start(
>>> -name='session name',
>>> -expires=some_integer_minutes,
>>> -usenone,
>>> -id='session id');
>>>
>>> --steve
>>>
>>>
>>> On 11/6/17 at 9:35 AM, [hidden email] (James Sheffer) pronounced:
>>>
>>>> Hey everyone - long time no see :-)
>>>>  I thought I could set a custom session ID in Lasso when starting a new session but when
>> I try the code below I get an error:
>>>>  session_start(-Name= $cart_id, -ID= '123abc’);
>>>>  ERROR:
>>>>  Attempt to modify a frozen value. The value was "123abc" of type "string". (=)
>>>>   I have a page that, among other things, checks to see if the user has already placed an
>> online order by checking the current sessionID against the sessionID’s stored in the orders table after an order has been placed.
>>>>  I need to make some modifications to the code and want to start a new session using a
>> sessionID that has already been used in the order process to test.
>>>>  Since this is only for testing I’m not worried about security…
>>>>  Can anyone point me in the right direction and show me the error in my ways?
>>>>  Thank you!
>>>>   James Sheffer
>>>> [hidden email]
>>>> www.higherpowered.com
>>>> 469-256-0268
>>>>       #############################################################
>>>>  This message is sent to you because you are subscribed to
>>>> the mailing list Lasso [hidden email]
>>>> Official list archives available at http://www.lassotalk.com
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>>
>>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>> Steve Piercy              Website Builder              Eugene, OR
>>> <[hidden email]>               <http://www.stevepiercy.com/>
>>>
>>>
>>> #############################################################
>>>
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Steve Piercy              Website Builder              Eugene, OR
> <[hidden email]>               <http://www.stevepiercy.com/>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
> the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Custom session -ID

stevepiercy
The code sample I provided works fine for me.  Did it work for
you *as is*?

I can't offer further help without knowing what is in
globals.lasso.  My guess is you got something funky in there.

--steve


On 11/6/17 at 4:13 PM, [hidden email] (James Sheffer) pronounced:

>Steve-
>
>Okay, I really don’t need one of those “weird days” of problems :-)
>
>I’m going to restart the server just to be safe.  I can get the following to work:
>
>
>include('globals.lasso'); // includes $cart_id
>
>var('sID') = '6CF31A4619205251CDRgwr90B801';
>
>session_start(
>-name= $cart_id,
>-expires=30,
>-usenone,
>-id= $sID);
>
>'Session_ID: ';
>Session_ID: -Name= $cart_id;
>'<br />’;
>
>If I just add the session to the “-id=“ line, I get the
>frozen values error but if create a variable first and add it I
>don’t get the error.  Almost as if the “-id” parameter is
>expecting something other than a string (which can’t be the
>case as the session is a string!).
>
>BUT…
>
>What I was expecting to happen is not happening.  Each time I
>reload the page, it creates a new sessionID.  It is not using
>the value of the “-id” parameter.  I was expecting to see
>“ 6CF31A4619205251CDRgwr90B801” each time the page loads...
>
>James
>
>>On Nov 6, 2017, at 3:26 PM, Steve Piercy - Website Builder <[hidden email]> wrote:
>>
>>This works for me.
>>
>>session_start(
>>-name='mysession',
>>-expires=60,
>>-usenone,
>>-id='abc123');
>>
>>session_id(-name='mysession');
>>
>>=>
>>abc123
>>
>>You might have something lurking in your include.  Also dunno if Apple Mail (a POS mail
>client) is being "helpful" by auto-correcting your ' to ‘,
>but you should check for that and similar gremlins in your
>code.  The error stack with this bit:
>>
>>at: start with params
>>
>>is suspicious to me.  I would expect this:
>>
>>at: session_start with params
>>
>>--steve
>>
>>
>>On 11/6/17 at 2:55 PM, [hidden email] (James Sheffer) pronounced:
>>
>>> Steve-
>>>   Thanks - I tried the following but got the same error (in
>>>fact, I’ve stripped the test
>page to only this code right now just to verify that the
>sessionID I entered is actually being used):
>>>   ------------------------------
>>> include('globals.lasso’); // includes $cart_id
>>>   session_start( -name= $cart_id, -expires=30, -usenone, -id=‘123abc');
>>>    'Session_ID: ';
>>> Session_ID: -Name= $cart_id;
>>> '<br />’;
>>> ——————————————
>>>    And the entire error:
>>> ——————————————
>>>   Attempt to modify a frozen value. The value was "123abc"
>>>of type "string". (=)
>>> at: start with params: -name='test1', -expires=30, -usenone, -id='123abc'
>>> at: /test_sessionid.lasso on line: 8 at position: 2
>>>   ——————————————
>>>    Really all I am trying to do is verify that the code
>>>works.  Since people place multiple
>orders in a row on this particular site, I need to check their
>sessionID against the orders table and reset the session if
>they just ordered.
>>>   My thought was that I was going to take a sessionID from
>>>the orders table and hard code
>it into my test page to make sure the code does as it should :-)
>>>   — for various reasons, placing a test order myself and
>>>using that as a test is not an
>option…
>>>   I can find another way to test, I just thought it would be
>>>easiest to create a test page
>with the code and add the sessionIM manually :-)
>>>    James Sheffer
>>> [hidden email]
>>> www.higherpowered.com
>>> 469-256-0268
>>>    
>>>> On Nov 6, 2017, at 12:35 PM, Steve Piercy - Website Builder <[hidden email]>
>wrote:
>>>>   http://reference.lassosoft.com/LassoReference.LassoApp?lassoscript/browse
>>>>   -UseNone can also be specified if neither method of
>>>>propagating the session is desired.
>>> In this case the session ID must be propagated by the site designer using some other
>method. A manually propagated session ID can be passed into the
>[Session_Start] tag in the -ID parameter.
>>>>   session_start(
>>>> -name='session name',
>>>> -expires=some_integer_minutes,
>>>> -usenone,
>>>> -id='session id');
>>>>   --steve
>>>>    On 11/6/17 at 9:35 AM, [hidden email] (James
>>>>Sheffer) pronounced:
>>>>
>>>>> Hey everyone - long time no see :-)
>>>>>  I thought I could set a custom session ID in Lasso when starting a new session but
>when
>>> I try the code below I get an error:
>>>>>  session_start(-Name= $cart_id, -ID= '123abc’);
>>>>>  ERROR:
>>>>>  Attempt to modify a frozen value. The value was "123abc" of type "string". (=)
>>>>>   I have a page that, among other things, checks to see if the user has already placed
>an
>>> online order by checking the current sessionID against the sessionID’s stored in the
>orders table after an order has been placed.
>>>>>  I need to make some modifications to the code and want to start a new session using a
>>> sessionID that has already been used in the order process to test.
>>>>>  Since this is only for testing I’m not worried about security…
>>>>>  Can anyone point me in the right direction and show me the error in my ways?
>>>>>  Thank you!
>>>>>   James Sheffer
>>>>> [hidden email]
>>>>> www.higherpowered.com
>>>>> 469-256-0268
>>>>>       #############################################################
>>>>>  This message is sent to you because you are subscribed to
>>>>> the mailing list Lasso [hidden email]
>>>>> Official list archives available at http://www.lassotalk.com
>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>> Send administrative queries to  <[hidden email]>
>>>>   -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>-- -- --
>>>> Steve Piercy              Website Builder              Eugene, OR
>>>> <[hidden email]>               <http://www.stevepiercy.com/>
>>>>    #############################################################
>>>>   This message is sent to you because you are subscribed to
>>>> the mailing list Lasso [hidden email]
>>>> Official list archives available at http://www.lassotalk.com
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>>    #############################################################
>>>   This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>Steve Piercy              Website Builder              Eugene, OR
>><[hidden email]>               <http://www.stevepiercy.com/>
>>
>>
>>#############################################################
>>
>>This message is sent to you because you are subscribed to
>>the mailing list Lasso [hidden email]
>>Official list archives available at http://www.lassotalk.com
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Eugene, OR
<[hidden email]>               <http://www.stevepiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Custom session -ID

James Sheffer
Steve-

Apologies - I ment to mention that I tried your code and it did not work.  It’s not in the globals.lasso either as I can take that out.

Also, although I don’t think it matters with this but I am running Lasso 8.5 on Mac OS.

Here is everything in the file using your code that failed with the same error message:

                <?lassoscript

                        session_start(
        -name='mysession',
        -expires=60,
        -usenone,
        -id='abc123');

    session_id(-name='mysession’);
                ?>

———————————

Here is the code(in it’s entirety) that doesn’t throw an error but doesn’t display the correct “id” either (throws a new sessionID after each page load):

        <?lassoscript

                var('sID') = '6CF31A4619205251CDRgwr90B801';

                session_start(
                                        -name = ‘test1',
                                        -expires = 30,
                                        -id = $sID,
                                        -usenone,
                                        );

'Session_ID: ';
Session_ID: -Name= 'test1';
'<br />';
———————————

** Note that if I replace “-id =  $sID,” with “-id =  ‘6CF31A4619205251CDRgwr90B801’,” I get the "Attempt to modify a frozen value” error again.

I appreciate your help!  I can easily verify that the code works in other ways so this isn’t a “priority” - although now I’m hell bent to find out what is going on!


James

> On Nov 6, 2017, at 4:34 PM, Steve Piercy - Website Builder <[hidden email]> wrote:
>
> The code sample I provided works fine for me.  Did it work for you *as is*?
>
> I can't offer further help without knowing what is in globals.lasso.  My guess is you got something funky in there.
>
> --steve
>
>
> On 11/6/17 at 4:13 PM, [hidden email] (James Sheffer) pronounced:
>
>> Steve-
>>
>> Okay, I really don’t need one of those “weird days” of problems :-)
>>
>> I’m going to restart the server just to be safe.  I can get the following to work:
>>
>>
>> include('globals.lasso'); // includes $cart_id
>>
>> var('sID') = '6CF31A4619205251CDRgwr90B801';
>>
>> session_start(
>> -name= $cart_id,
>> -expires=30,
>> -usenone,
>> -id= $sID);
>>
>> 'Session_ID: ';
>> Session_ID: -Name= $cart_id;
>> '<br />’;
>>
>> If I just add the session to the “-id=“ line, I get the frozen values error but if create a variable first and add it I don’t get the error.  Almost as if the “-id” parameter is expecting something other than a string (which can’t be the case as the session is a string!).
>>
>> BUT…
>>
>> What I was expecting to happen is not happening.  Each time I reload the page, it creates a new sessionID.  It is not using the value of the “-id” parameter.  I was expecting to see “ 6CF31A4619205251CDRgwr90B801” each time the page loads...
>>
>> James
>>
>>> On Nov 6, 2017, at 3:26 PM, Steve Piercy - Website Builder <[hidden email]> wrote:
>>>
>>> This works for me.
>>>
>>> session_start(
>>> -name='mysession',
>>> -expires=60,
>>> -usenone,
>>> -id='abc123');
>>>
>>> session_id(-name='mysession');
>>>
>>> =>
>>> abc123
>>>
>>> You might have something lurking in your include.  Also dunno if Apple Mail (a POS mail
>> client) is being "helpful" by auto-correcting your ' to ‘, but you should check for that and similar gremlins in your code.  The error stack with this bit:
>>>
>>> at: start with params
>>>
>>> is suspicious to me.  I would expect this:
>>>
>>> at: session_start with params
>>>
>>> --steve
>>>
>>>
>>> On 11/6/17 at 2:55 PM, [hidden email] (James Sheffer) pronounced:
>>>
>>>> Steve-
>>>>  Thanks - I tried the following but got the same error (in fact, I’ve stripped the test
>> page to only this code right now just to verify that the sessionID I entered is actually being used):
>>>>  ------------------------------
>>>> include('globals.lasso’); // includes $cart_id
>>>>  session_start( -name= $cart_id, -expires=30, -usenone, -id=‘123abc');
>>>>   'Session_ID: ';
>>>> Session_ID: -Name= $cart_id;
>>>> '<br />’;
>>>> ——————————————
>>>>   And the entire error:
>>>> ——————————————
>>>>  Attempt to modify a frozen value. The value was "123abc" of type "string". (=)
>>>> at: start with params: -name='test1', -expires=30, -usenone, -id='123abc'
>>>> at: /test_sessionid.lasso on line: 8 at position: 2
>>>>  ——————————————
>>>>   Really all I am trying to do is verify that the code works.  Since people place multiple
>> orders in a row on this particular site, I need to check their sessionID against the orders table and reset the session if they just ordered.
>>>>  My thought was that I was going to take a sessionID from the orders table and hard code
>> it into my test page to make sure the code does as it should :-)
>>>>  — for various reasons, placing a test order myself and using that as a test is not an
>> option…
>>>>  I can find another way to test, I just thought it would be easiest to create a test page
>> with the code and add the sessionIM manually :-)
>>>>   James Sheffer
>>>> [hidden email]
>>>> www.higherpowered.com
>>>> 469-256-0268
>>>>    
>>>>> On Nov 6, 2017, at 12:35 PM, Steve Piercy - Website Builder <[hidden email]>
>> wrote:
>>>>>  http://reference.lassosoft.com/LassoReference.LassoApp?lassoscript/browse
>>>>>  -UseNone can also be specified if neither method of propagating the session is desired.
>>>> In this case the session ID must be propagated by the site designer using some other
>> method. A manually propagated session ID can be passed into the [Session_Start] tag in the -ID parameter.
>>>>>  session_start(
>>>>> -name='session name',
>>>>> -expires=some_integer_minutes,
>>>>> -usenone,
>>>>> -id='session id');
>>>>>  --steve
>>>>>   On 11/6/17 at 9:35 AM, [hidden email] (James Sheffer) pronounced:
>>>>>
>>>>>> Hey everyone - long time no see :-)
>>>>>> I thought I could set a custom session ID in Lasso when starting a new session but
>> when
>>>> I try the code below I get an error:
>>>>>> session_start(-Name= $cart_id, -ID= '123abc’);
>>>>>> ERROR:
>>>>>> Attempt to modify a frozen value. The value was "123abc" of type "string". (=)
>>>>>>  I have a page that, among other things, checks to see if the user has already placed
>> an
>>>> online order by checking the current sessionID against the sessionID’s stored in the
>> orders table after an order has been placed.
>>>>>> I need to make some modifications to the code and want to start a new session using a
>>>> sessionID that has already been used in the order process to test.
>>>>>> Since this is only for testing I’m not worried about security…
>>>>>> Can anyone point me in the right direction and show me the error in my ways?
>>>>>> Thank you!
>>>>>>  James Sheffer
>>>>>> [hidden email]
>>>>>> www.higherpowered.com
>>>>>> 469-256-0268
>>>>>>      #############################################################
>>>>>> This message is sent to you because you are subscribed to
>>>>>> the mailing list Lasso [hidden email]
>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>> Send administrative queries to  <[hidden email]>
>>>>>  -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>> Steve Piercy              Website Builder              Eugene, OR
>>>>> <[hidden email]>               <http://www.stevepiercy.com/>
>>>>>   #############################################################
>>>>>  This message is sent to you because you are subscribed to
>>>>> the mailing list Lasso [hidden email]
>>>>> Official list archives available at http://www.lassotalk.com
>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>> Send administrative queries to  <[hidden email]>
>>>>   #############################################################
>>>>  This message is sent to you because you are subscribed to
>>>> the mailing list Lasso [hidden email]
>>>> Official list archives available at http://www.lassotalk.com
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>>
>>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>> Steve Piercy              Website Builder              Eugene, OR
>>> <[hidden email]>               <http://www.stevepiercy.com/>
>>>
>>>
>>> #############################################################
>>>
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Steve Piercy              Website Builder              Eugene, OR
> <[hidden email]>               <http://www.stevepiercy.com/>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
> the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Custom session -ID

stevepiercy
I tested with 8.6.3 on macOS 10.12.6.  Maybe it's a bug in 8.5.x?

Maybe you have a stale cookie in your browser?

I would also clear all sessions from the Lasso internal SQLite database.

--steve


On 11/6/17 at 6:18 PM, [hidden email] (James Sheffer) pronounced:

>Steve-
>
>Apologies - I ment to mention that I tried your code and it did
>not work.  It’s not in the globals.lasso either as I can take
>that out.
>
>Also, although I don’t think it matters with this but I am running Lasso 8.5 on Mac OS.
>
>Here is everything in the file using your code that failed with the same error message:
>
><?lassoscript
>
>session_start(
>-name='mysession',
>-expires=60,
>-usenone,
>-id='abc123');
>
>session_id(-name='mysession’);
>?>
>
>———————————
>
>Here is the code(in it’s entirety) that doesn’t throw an
>error but doesn’t display the correct “id” either (throws
>a new sessionID after each page load):
>
><?lassoscript
>
>var('sID') = '6CF31A4619205251CDRgwr90B801';
>
>session_start(
>-name   = ‘test1',
>-expires    = 30,
>-id = $sID,
>-usenone,
>);
>
>'Session_ID: ';
>Session_ID: -Name= 'test1';
>'<br />';
>———————————
>
>** Note that if I replace “-id =  $sID,” with “-id =  
>‘6CF31A4619205251CDRgwr90B801’,” I get the "Attempt to
>modify a frozen value” error again.
>
>I appreciate your help!  I can easily verify that the code
>works in other ways so this isn’t a “priority” - although
>now I’m hell bent to find out what is going on!
>
>
>James
>
>>On Nov 6, 2017, at 4:34 PM, Steve Piercy - Website Builder <[hidden email]> wrote:
>>
>>The code sample I provided works fine for me.  Did it work for you *as is*?
>>
>>I can't offer further help without knowing what is in globals.lasso.  My guess is you got
>something funky in there.
>>
>>--steve
>>
>>
>>On 11/6/17 at 4:13 PM, [hidden email] (James Sheffer) pronounced:
>>
>>> Steve-
>>>   Okay, I really don’t need one of those “weird days”
>>>of problems :-)
>>>   I’m going to restart the server just to be safe.  I can
>>>get the following to work:
>>>    include('globals.lasso'); // includes $cart_id
>>>   var('sID') = '6CF31A4619205251CDRgwr90B801';
>>>   session_start(
>>> -name= $cart_id,
>>> -expires=30,
>>> -usenone,
>>> -id= $sID);
>>>   'Session_ID: ';
>>> Session_ID: -Name= $cart_id;
>>> '<br />’;
>>>   If I just add the session to the “-id=“ line, I get
>>>the frozen values error but if
>create a variable first and add it I don’t get the error.  
>Almost as if the “-id” parameter is expecting something
>other than a string (which can’t be the case as the session
>is a string!).
>>>   BUT…
>>>   What I was expecting to happen is not happening.  Each
>>>time I reload the page, it
>creates a new sessionID.  It is not using the value of the
>“-id” parameter.  I was expecting to see “
>6CF31A4619205251CDRgwr90B801” each time the page loads...
>>>   James
>>>
>>>> On Nov 6, 2017, at 3:26 PM, Steve Piercy - Website Builder <[hidden email]> wrote:
>>>>   This works for me.
>>>>   session_start(
>>>> -name='mysession',
>>>> -expires=60,
>>>> -usenone,
>>>> -id='abc123');
>>>>   session_id(-name='mysession');
>>>>   =>
>>>> abc123
>>>>   You might have something lurking in your include.  Also
>>>>dunno if Apple Mail (a POS mail
>>> client) is being "helpful" by auto-correcting your ' to ‘, but you should check for that
>and similar gremlins in your code.  The error stack with this bit:
>>>>   at: start with params
>>>>   is suspicious to me.  I would expect this:
>>>>   at: session_start with params
>>>>   --steve
>>>>    On 11/6/17 at 2:55 PM, [hidden email] (James
>>>>Sheffer) pronounced:
>>>>
>>>>> Steve-
>>>>>  Thanks - I tried the following but got the same error (in fact, I’ve stripped the
>test
>>> page to only this code right now just to verify that the sessionID I entered is actually
>being used):
>>>>>  ------------------------------
>>>>> include('globals.lasso’); // includes $cart_id
>>>>>  session_start( -name= $cart_id, -expires=30, -usenone, -id=‘123abc');
>>>>>   'Session_ID: ';
>>>>> Session_ID: -Name= $cart_id;
>>>>> '<br />’;
>>>>> ——————————————
>>>>>   And the entire error:
>>>>> ——————————————
>>>>>  Attempt to modify a frozen value. The value was "123abc" of type "string". (=)
>>>>> at: start with params: -name='test1', -expires=30, -usenone, -id='123abc'
>>>>> at: /test_sessionid.lasso on line: 8 at position: 2
>>>>>  ——————————————
>>>>>   Really all I am trying to do is verify that the code works.  Since people place
>multiple
>>> orders in a row on this particular site, I need to check their sessionID against the
>orders table and reset the session if they just ordered.
>>>>>  My thought was that I was going to take a sessionID from the orders table and hard
>code
>>> it into my test page to make sure the code does as it should :-)
>>>>>  — for various reasons, placing a test order myself and using that as a test is not an
>>> option…
>>>>>  I can find another way to test, I just thought it would be easiest to create a test
>page
>>> with the code and add the sessionIM manually :-)
>>>>>   James Sheffer
>>>>> [hidden email]
>>>>> www.higherpowered.com
>>>>> 469-256-0268
>>>>>
>>>>>> On Nov 6, 2017, at 12:35 PM, Steve Piercy - Website Builder <[hidden email]>
>>> wrote:
>>>>>>  http://reference.lassosoft.com/LassoReference.LassoApp?lassoscript/browse
>>>>>>  -UseNone can also be specified if neither method of propagating the session is
>desired.
>>>>> In this case the session ID must be propagated by the site designer using some other
>>> method. A manually propagated session ID can be passed into the [Session_Start] tag in
>the -ID parameter.
>>>>>>  session_start(
>>>>>> -name='session name',
>>>>>> -expires=some_integer_minutes,
>>>>>> -usenone,
>>>>>> -id='session id');
>>>>>>  --steve
>>>>>>   On 11/6/17 at 9:35 AM, [hidden email] (James Sheffer) pronounced:
>>>>>>
>>>>>>> Hey everyone - long time no see :-)
>>>>>>> I thought I could set a custom session ID in Lasso when starting a new session but
>>> when
>>>>> I try the code below I get an error:
>>>>>>> session_start(-Name= $cart_id, -ID= '123abc’);
>>>>>>> ERROR:
>>>>>>> Attempt to modify a frozen value. The value was "123abc" of type "string". (=)
>>>>>>>  I have a page that, among other things, checks to see if the user has already
>placed
>>> an
>>>>> online order by checking the current sessionID against the sessionID’s stored in the
>>> orders table after an order has been placed.
>>>>>>> I need to make some modifications to the code and want to start a new session using
>a
>>>>> sessionID that has already been used in the order process to test.
>>>>>>> Since this is only for testing I’m not worried about security…
>>>>>>> Can anyone point me in the right direction and show me the error in my ways?
>>>>>>> Thank you!
>>>>>>>  James Sheffer
>>>>>>> [hidden email]
>>>>>>> www.higherpowered.com
>>>>>>> 469-256-0268
>>>>>>>      #############################################################
>>>>>>> This message is sent to you because you are subscribed to
>>>>>>> the mailing list Lasso [hidden email]
>>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>>> Send administrative queries to  <[hidden email]>
>>>>>>  -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>>> Steve Piercy              Website Builder              Eugene, OR
>>>>>> <[hidden email]>               <http://www.stevepiercy.com/>
>>>>>>   #############################################################
>>>>>>  This message is sent to you because you are subscribed to
>>>>>> the mailing list Lasso [hidden email]
>>>>>> Official list archives available at http://www.lassotalk.com
>>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>>> Send administrative queries to  <[hidden email]>
>>>>>   #############################################################
>>>>>  This message is sent to you because you are subscribed to
>>>>> the mailing list Lasso [hidden email]
>>>>> Official list archives available at http://www.lassotalk.com
>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>> Send administrative queries to  <[hidden email]>
>>>>   -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>-- -- --
>>>> Steve Piercy              Website Builder              Eugene, OR
>>>> <[hidden email]>               <http://www.stevepiercy.com/>
>>>>    #############################################################
>>>>   This message is sent to you because you are subscribed to
>>>> the mailing list Lasso [hidden email]
>>>> Official list archives available at http://www.lassotalk.com
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>>    #############################################################
>>>   This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>Steve Piercy              Website Builder              Eugene, OR
>><[hidden email]>               <http://www.stevepiercy.com/>
>>
>>
>>#############################################################
>>
>>This message is sent to you because you are subscribed to
>>the mailing list Lasso [hidden email]
>>Official list archives available at http://www.lassotalk.com
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Eugene, OR
<[hidden email]>               <http://www.stevepiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Custom session -ID

Johan Solve
In reply to this post by stevepiercy
>     at: start with params

I think this is due to namespacing. The namespace for the session tags
is ”session_”, and the namespace is probably stripped from the error
report.

2017-11-07 0:26 GMT+01:00 Steve Piercy - Website Builder <
[hidden email]>:

> This works for me.
>
>     session_start(
>         -name='mysession',
>         -expires=60,
>         -usenone,
>         -id='abc123');
>
>     session_id(-name='mysession');
>
> =>
> abc123
>
> You might have something lurking in your include.  Also dunno if Apple
> Mail (a POS mail client) is being "helpful" by auto-correcting your ' to ‘,
> but you should check for that and similar gremlins in your code.  The error
> stack with this bit:
>
>     at: start with params
>
> is suspicious to me.  I would expect this:
>
>     at: session_start with params
>
> --steve
>
>
> On 11/6/17 at 2:55 PM, [hidden email] (James Sheffer) pronounced:
>
>
> Steve-
>>
>> Thanks - I tried the following but got the same error (in fact, I’ve
>> stripped the test page to only this code right now just to verify that the
>> sessionID I entered is actually being used):
>>
>> ------------------------------
>> include('globals.lasso’); // includes $cart_id
>>
>> session_start( -name= $cart_id, -expires=30, -usenone, -id=‘123abc');
>>
>>
>> 'Session_ID: ';
>> Session_ID: -Name= $cart_id;
>> '<br />’;
>> ——————————————
>>
>>
>> And the entire error:
>> ——————————————
>>
>> Attempt to modify a frozen value. The value was "123abc" of type
>> "string". (=)
>> at: start with params: -name='test1', -expires=30, -usenone, -id='123abc'
>> at: /test_sessionid.lasso on line: 8 at position: 2
>>
>> ——————————————
>>
>>
>> Really all I am trying to do is verify that the code works.  Since people
>> place multiple orders in a row on this particular site, I need to check
>> their sessionID against the orders table and reset the session if they just
>> ordered.
>>
>> My thought was that I was going to take a sessionID from the orders table
>> and hard code it into my test page to make sure the code does as it should
>> :-)
>>
>> — for various reasons, placing a test order myself and using that as a
>> test is not an option…
>>
>> I can find another way to test, I just thought it would be easiest to
>> create a test page with the code and add the sessionIM manually :-)
>>
>>
>> James Sheffer
>> [hidden email]
>> www.higherpowered.com
>> 469-256-0268
>>
>>
>>
>>
>>
>> On Nov 6, 2017, at 12:35 PM, Steve Piercy - Website Builder <
>>> [hidden email]> wrote:
>>>
>>> http://reference.lassosoft.com/LassoReference.LassoApp?lasso
>>> script/browse
>>>
>>> -UseNone can also be specified if neither method of propagating the
>>> session is desired.
>>>
>> In this case the session ID must be propagated by the site designer using
>> some other method. A manually propagated session ID can be passed into the
>> [Session_Start] tag in the -ID parameter.
>>
>>>
>>> session_start(
>>> -name='session name',
>>> -expires=some_integer_minutes,
>>> -usenone,
>>> -id='session id');
>>>
>>> --steve
>>>
>>>
>>> On 11/6/17 at 9:35 AM, [hidden email] (James Sheffer)
>>> pronounced:
>>>
>>> Hey everyone - long time no see :-)
>>>>   I thought I could set a custom session ID in Lasso when starting a
>>>> new session but when
>>>>
>>> I try the code below I get an error:
>>
>>>   session_start(-Name= $cart_id, -ID= '123abc’);
>>>>   ERROR:
>>>>   Attempt to modify a frozen value. The value was "123abc" of type
>>>> "string". (=)
>>>>    I have a page that, among other things, checks to see if the user
>>>> has already placed an
>>>>
>>> online order by checking the current sessionID against the sessionID’s
>> stored in the orders table after an order has been placed.
>>
>>>   I need to make some modifications to the code and want to start a new
>>>> session using a
>>>>
>>> sessionID that has already been used in the order process to test.
>>
>>>   Since this is only for testing I’m not worried about security…
>>>>   Can anyone point me in the right direction and show me the error in
>>>> my ways?
>>>>   Thank you!
>>>>    James Sheffer
>>>> [hidden email]
>>>> www.higherpowered.com
>>>> 469-256-0268
>>>>        #############################################################
>>>>   This message is sent to you because you are subscribed to
>>>> the mailing list Lasso [hidden email]
>>>> Official list archives available at http://www.lassotalk.com
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>>>
>>>
>>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>> Steve Piercy              Website Builder              Eugene, OR
>>> <[hidden email]>               <http://www.stevepiercy.com/>
>>>
>>>
>>> #############################################################
>>>
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Steve Piercy              Website Builder              Eugene, OR
> <[hidden email]>               <http://www.stevepiercy.com/>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
>



--
Mvh
Johan Sölve
____________________________________
Montania System AB
Halmstad   Stockholm
http://www.montania.se

Johan Sölve
Mobil +46 709-51 55 70
[hidden email]

Kristinebergsvägen 17, S-302 41 Halmstad, Sweden
Telefon +46 35-136800 |  Fax +46 35-136801

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Putting special characters in an Email Subject line.

Michael Benedict
Hello,

Here is the string I want to use as the subject line in a "Spanish" language email.
Using standard ascii- it is:
Reg&iacute;strese al Foro T&eacute;cnico de Am&eacute;ricas, 6 al 10 de agosto, 2018

Using the Encode_Smart function, it displays just fine.
Like this:
Regístrese al Foro Técnico de Américas, 6 al 10 de agosto, 2018


but when I insert it into the subject line of the standard Email_send;
-Subject=(encode_smart:var:'InviteEmail_Subject'),

It reverts back to this email subject line when the email is received.:
Reg&iacute;strese al Foro T&eacute;cnico de Am&eacute;ricas, 6 al 10 de agosto, 2018


I tested in gmail and outlook and they both display this same reverted text.

Any ideas how I can keep those special characters encoded in my subject line?

Thanks,
Michael



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Putting special characters in an Email Subject line.

Carl Ketterling
Michael,

I don’t know what the correct way to accomplish this is, but when I put this text in a subject line...

Regístrese al Foro Técnico de Américas, 6 al 10 de agosto, 2018

...and send the email, the subject in the email is correct (as shown in Apple’s Mail program).  In the source of the email, it looks like this:

Subject: =?utf-8?Q?Reg=C3=ADstrese_al_Foro_T=C3=A9cnico_de_Am=C3=A9ricas,_6_al_10_de_agosto,_2?=
 =?utf-8?Q?018?=

I think that Lasso is smart enough to encode the email string properly.

I’m using Lasso 9.

Have you tried just sending the string the way you want it to look?

Carl


> On Nov 7, 2017, at 4:02 PM, Michael Benedict <[hidden email]> wrote:
>
> Hello,
>
> Here is the string I want to use as the subject line in a "Spanish" language email.
> Using standard ascii- it is:
> Reg&iacute;strese al Foro T&eacute;cnico de Am&eacute;ricas, 6 al 10 de agosto, 2018
>
> Using the Encode_Smart function, it displays just fine.
> Like this:
> Regístrese al Foro Técnico de Américas, 6 al 10 de agosto, 2018
>
>
> but when I insert it into the subject line of the standard Email_send;
> -Subject=(encode_smart:var:'InviteEmail_Subject'),
>
> It reverts back to this email subject line when the email is received.:
> Reg&iacute;strese al Foro T&eacute;cnico de Am&eacute;ricas, 6 al 10 de agosto, 2018
>
>
> I tested in gmail and outlook and they both display this same reverted text.
>
> Any ideas how I can keep those special characters encoded in my subject line?
>
> Thanks,
> Michael
>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Putting special characters in an Email Subject line.

Bil Corry-3
In reply to this post by Michael Benedict
You don't encode the subject line.  Did you try passing the actual text you
want?

-subject="Regístrese al Foro Técnico de Américas, 6 al 10 de agosto, 2018"


- Bil


On Tue, Nov 7, 2017 at 3:02 PM, Michael Benedict <[hidden email]
> wrote:

> Hello,
>
> Here is the string I want to use as the subject line in a "Spanish"
> language email.
> Using standard ascii- it is:
> Reg&iacute;strese al Foro T&eacute;cnico de Am&eacute;ricas, 6 al 10 de
> agosto, 2018
>
> Using the Encode_Smart function, it displays just fine.
> Like this:
> Regístrese al Foro Técnico de Américas, 6 al 10 de agosto, 2018
>
>
> but when I insert it into the subject line of the standard Email_send;
> -Subject=(encode_smart:var:'InviteEmail_Subject'),
>
> It reverts back to this email subject line when the email is received.:
> Reg&iacute;strese al Foro T&eacute;cnico de Am&eacute;ricas, 6 al 10 de
> agosto, 2018
>
>
> I tested in gmail and outlook and they both display this same reverted
> text.
>
> Any ideas how I can keep those special characters encoded in my subject
> line?
>
> Thanks,
> Michael
>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>   the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Putting special characters in an Email Subject line.

Carl Ketterling
Yes.  And it appeared to encode automatically.


> On Nov 7, 2017, at 6:06 PM, Bil Corry <[hidden email]> wrote:
>
> You don't encode the subject line.  Did you try passing the actual text you
> want?
>
> -subject="Regístrese al Foro Técnico de Américas, 6 al 10 de agosto, 2018"
>
>
> - Bil
>
>
> On Tue, Nov 7, 2017 at 3:02 PM, Michael Benedict <[hidden email]
>> wrote:
>
>> Hello,
>>
>> Here is the string I want to use as the subject line in a "Spanish"
>> language email.
>> Using standard ascii- it is:
>> Reg&iacute;strese al Foro T&eacute;cnico de Am&eacute;ricas, 6 al 10 de
>> agosto, 2018
>>
>> Using the Encode_Smart function, it displays just fine.
>> Like this:
>> Regístrese al Foro Técnico de Américas, 6 al 10 de agosto, 2018
>>
>>
>> but when I insert it into the subject line of the standard Email_send;
>> -Subject=(encode_smart:var:'InviteEmail_Subject'),
>>
>> It reverts back to this email subject line when the email is received.:
>> Reg&iacute;strese al Foro T&eacute;cnico de Am&eacute;ricas, 6 al 10 de
>> agosto, 2018
>>
>>
>> I tested in gmail and outlook and they both display this same reverted
>> text.
>>
>> Any ideas how I can keep those special characters encoded in my subject
>> line?
>>
>> Thanks,
>> Michael
>>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>>  the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Putting special characters in an Email Subject line.

Mark J. Reed
You are technically required to encode the subject line in the message as
sent on the wire if it is not plain 7-bit US-ASCII; if you have an
8-bit-clean connection you can send 8-bit characters, but it assumes
Latin-1.

Most user interfaces and library APIs just do that for you automatically

On Tue, Nov 7, 2017 at 7:14 PM, Carl Ketterling <[hidden email]> wrote:

> Yes.  And it appeared to encode automatically.
>
>
> > On Nov 7, 2017, at 6:06 PM, Bil Corry <[hidden email]> wrote:
> >
> > You don't encode the subject line.  Did you try passing the actual text
> you
> > want?
> >
> > -subject="Regístrese al Foro Técnico de Américas, 6 al 10 de agosto,
> 2018"
> >
> >
> > - Bil
> >
> >
> > On Tue, Nov 7, 2017 at 3:02 PM, Michael Benedict <
> [hidden email]
> >> wrote:
> >
> >> Hello,
> >>
> >> Here is the string I want to use as the subject line in a "Spanish"
> >> language email.
> >> Using standard ascii- it is:
> >> Reg&iacute;strese al Foro T&eacute;cnico de Am&eacute;ricas, 6 al 10 de
> >> agosto, 2018
> >>
> >> Using the Encode_Smart function, it displays just fine.
> >> Like this:
> >> Regístrese al Foro Técnico de Américas, 6 al 10 de agosto, 2018
> >>
> >>
> >> but when I insert it into the subject line of the standard Email_send;
> >> -Subject=(encode_smart:var:'InviteEmail_Subject'),
> >>
> >> It reverts back to this email subject line when the email is received.:
> >> Reg&iacute;strese al Foro T&eacute;cnico de Am&eacute;ricas, 6 al 10 de
> >> agosto, 2018
> >>
> >>
> >> I tested in gmail and outlook and they both display this same reverted
> >> text.
> >>
> >> Any ideas how I can keep those special characters encoded in my subject
> >> line?
> >>
> >> Thanks,
> >> Michael
> >>
> >>
> >>
> >> #############################################################
> >>
> >> This message is sent to you because you are subscribed to
> >>  the mailing list Lasso [hidden email]
> >> Official list archives available at http://www.lassotalk.com
> >> To unsubscribe, E-mail to: <[hidden email]>
> >> Send administrative queries to  <[hidden email]>
> >
> > #############################################################
> >
> > This message is sent to you because you are subscribed to
> >  the mailing list Lasso [hidden email]
> > Official list archives available at http://www.lassotalk.com
> > To unsubscribe, E-mail to: <[hidden email]>
> > Send administrative queries to  <[hidden email]>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>   the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
>



--
Mark J. Reed <[hidden email]>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Putting special characters in an Email Subject line.

Bil Corry-3
Correct, email_send does it automatically.  But if you pass it encoded
text, you will get a subject line of encoded text.  Instead pass it what
you want the subject line to actually be.


- Bil

On Wed, Nov 8, 2017 at 9:34 AM, Mark J. Reed <[hidden email]> wrote:

> You are technically required to encode the subject line in the message as
> sent on the wire if it is not plain 7-bit US-ASCII; if you have an
> 8-bit-clean connection you can send 8-bit characters, but it assumes
> Latin-1.
>
> Most user interfaces and library APIs just do that for you automatically
>
> On Tue, Nov 7, 2017 at 7:14 PM, Carl Ketterling <[hidden email]> wrote:
>
> > Yes.  And it appeared to encode automatically.
> >
> >
> > > On Nov 7, 2017, at 6:06 PM, Bil Corry <[hidden email]> wrote:
> > >
> > > You don't encode the subject line.  Did you try passing the actual text
> > you
> > > want?
> > >
> > > -subject="Regístrese al Foro Técnico de Américas, 6 al 10 de agosto,
> > 2018"
> > >
> > >
> > > - Bil
> > >
> > >
> > > On Tue, Nov 7, 2017 at 3:02 PM, Michael Benedict <
> > [hidden email]
> > >> wrote:
> > >
> > >> Hello,
> > >>
> > >> Here is the string I want to use as the subject line in a "Spanish"
> > >> language email.
> > >> Using standard ascii- it is:
> > >> Reg&iacute;strese al Foro T&eacute;cnico de Am&eacute;ricas, 6 al 10
> de
> > >> agosto, 2018
> > >>
> > >> Using the Encode_Smart function, it displays just fine.
> > >> Like this:
> > >> Regístrese al Foro Técnico de Américas, 6 al 10 de agosto, 2018
> > >>
> > >>
> > >> but when I insert it into the subject line of the standard Email_send;
> > >> -Subject=(encode_smart:var:'InviteEmail_Subject'),
> > >>
> > >> It reverts back to this email subject line when the email is
> received.:
> > >> Reg&iacute;strese al Foro T&eacute;cnico de Am&eacute;ricas, 6 al 10
> de
> > >> agosto, 2018
> > >>
> > >>
> > >> I tested in gmail and outlook and they both display this same reverted
> > >> text.
> > >>
> > >> Any ideas how I can keep those special characters encoded in my
> subject
> > >> line?
> > >>
> > >> Thanks,
> > >> Michael
> > >>
> > >>
> > >>
> > >> #############################################################
> > >>
> > >> This message is sent to you because you are subscribed to
> > >>  the mailing list Lasso [hidden email]
> > >> Official list archives available at http://www.lassotalk.com
> > >> To unsubscribe, E-mail to: <[hidden email]>
> > >> Send administrative queries to  <[hidden email]>
> > >
> > > #############################################################
> > >
> > > This message is sent to you because you are subscribed to
> > >  the mailing list Lasso [hidden email]
> > > Official list archives available at http://www.lassotalk.com
> > > To unsubscribe, E-mail to: <[hidden email]>
> > > Send administrative queries to  <[hidden email]>
> >
> >
> > #############################################################
> >
> > This message is sent to you because you are subscribed to
> >   the mailing list Lasso [hidden email]
> > Official list archives available at http://www.lassotalk.com
> > To unsubscribe, E-mail to: <[hidden email]>
> > Send administrative queries to  <[hidden email]>
> >
>
>
>
> --
> Mark J. Reed <[hidden email]>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>   the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>