Forum Discussion

nojun_136850's avatar
nojun_136850
Icon for Nimbostratus rankNimbostratus
Feb 26, 2015

Persistence for SessionID value in URI

Hi, We try to have a persistence for the URI starts with "@rt:rt/WebPoint/" and has this line further:

 

Field=SessionId&Value=12412414

 

So we want to make the clients whose sessionID is 12412414 be sent to the same pool member. But I could not compile the right iRule unfortunately. Any helps appreciated.

 

Thanks.

 

2 Replies

  • I have solved the problem with this irule at all

     

    when HTTP_REQUEST {

     

    set sessionid [findstr [HTTP::uri] "SessionId&Value=" 16 "&"]

     

    if { $sessionid != "" } { persist uie $sessionid 600 } }