Yes I know but have to insert it in a view, because using javascript there 
is where I select a value from drop down. The problem is that the value is 
not inserted and cannot be read in model

On Friday, September 21, 2012 12:07:28 PM UTC+2, Johann Spies wrote:
>
> On 21 September 2012 10:50, Yebach <vid....@gmail.com <javascript:>>wrote:
>
>> I am having problems with session
>>
>> After a user selects smth from drop down menu I have to insert that value 
>> to session.
>> I need that value to get to the database for auth tables in model (it 
>> crashes when I go to login/register form if I read from request.var). Where 
>> do I insert the value in session and how (view, controler).
>>
>> For now I solved it using cookies but it is not the most secure.
>>
>> Any suggestions?
>>
>>
> I am not sure whether I understand your problem correctly but you can do:
>
> session.chosen_value = <whatever value you want to put there>
>
> where 'chosen_value'  might be any variable name you want to assign.
>
> Regards
> Johann 
>
> -- 
> Because experiencing your loyal love is better than life itself, 
> my lips will praise you.  (Psalm 63:3)
>
>

-- 



Reply via email to